- 积分
- 24557
- 明经币
- 个
- 注册时间
- 2004-3-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2009-10-15 11:11:00
|
显示全部楼层
- 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);
- }
复制代码 |
|