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