KPolylineCurve3d 接口
export interface KPolylineCurve3d extends KBoundedCurve3d 
KPolylineCurve3d 类代表着二维空间中的一个折线段。
The KPolylineCurve3d class represents a polyline in 2d space.
继承: KBoundedCurve3d
属性
params
readonly params: number[];
获取当前折线段每个顶点的弧长参数。
Get arc length parameters of all the vertices of the polyline.
points
readonly points: KPoint3d[];
获取当前折线段的所有顶点。
Get all the vertices of the polyline.
类型: KPoint3d[]
方法
getTangent
getTangent(point: KPoint3d): KVector3d;
获得折线段上一点处的切向量。 注意:该函数调用需要确保传入点在折线段上。
Get tangent vector of a point on the polyline. NOTE: the caller needs to make sure the point is on the polyline.
参数:
- 
point: KPoint3d折线段上一点。 A point on the polyline. 
返回值: KVector3d
切向量。
The tangent vector.