跳到主要内容

KCurve2d interface

所有二维曲线的基类。

The root class for all 2d curves.

Signature:

export interface KCurve2d 

Methods

Method

Description

clone()

复制一个当前曲线。

Return the cloned curve of this.

getClosestPoint(point, tolerance)

获得在指定容差下曲线上距离传入点最近的一点。

Get the closest point on curve for the input point with specified tolerance.

getCurvatureVector(point)

求曲线上某点处的曲率向量。

Get curve's curvature vector for the input point on the curve.

getInterval()

获取曲线的参数域区间。

Get the parameter interval of the curve.

getParam(point)

反求输入点对应的曲线参数值。

Get point's corresponding parameter value on the curve.

getPoint(t)

求曲线参数值对应的曲线上的点位置。

Get the point on the curve specified by the input parameter t.

getType()

获得曲线的类型。

Get the curve's type.

isEqual(curve, tolerance)

检查两个曲线在指定容差下是否相等。

Check whether two curves are equal with specified tolerance.

isPointOnCurve(point, tolerance)

检查传入点在指定容差下是否位于曲线上。

Check whether the input point is on the curve or not with specified tolerance.

reverse()

把当前曲线反向。

reverse the current curve.

transform(matrix)

对当前曲线进行变换。

Transform this curve to a new one.