[求助]如何画与旋转后的表格垂直和平行的直线??
比如说一个表格table的旋转角度为 angle,在其单元格内选中一点point,如何画一条过此点并垂直表格的直线;另外如何画一条与table平行的直线? public Line DrawLine(Point3d startPoint, double length, double angle){
Vector3d vec =
Vector3d.XAxis.TransformBy(
Matrix3d.Rotation(
angle,
Vector3d.ZAxis,
Point3d.Origin));
vec *= length;
Point3d endPoint = startPoint + vec;
return
new Line(
startPoint,
endPoint);
}
页:
[1]