[MSCE C#] 获取线上某点的切向量后,希望插入设备的朝向为该切向量,怎么做?

//引用定义
using BIM = Bentley.Interop.MicroStationDGN;

//P1
 BIM.BsplineCurve bspLineCurve = new BIM.BsplineCurveClass();
 BIM.Point3d tangentAtPnt = new BIM.Point3d();   //当前点的切向量
bspLineCurve.EvaluatePointTangent(ref tangentAtPnt, parameter1);

//P2
ParametricCellElement pc = ParametricCellElement.Create(pcDef, null, dgnModel);

//P3
DMatrix3d rotateMatrix
pc.Rotation = rotateMatrix;

//

如何在P3的时候把前面的tangentAtPnt方向赋值给rotateMatrix;

Parents Reply Children
No Data