跳到主要内容

KEllipticalArc2d 接口

export interface KEllipticalArc2d extends KBoundedCurve2d 

KEllipticalArc2d 类代表着二维空间中的一个椭圆弧。

The KEllipticalArc2d class represents an elliptical arc in 2d space.

继承: KBoundedCurve2d

属性

center

readonly center: KPoint2d;

获取当前椭圆弧的圆心。

Get center of the elliptical arc.

类型: KPoint2d

endParam

readonly endParam: number;

获取椭圆弧的终点参数

Get the end parameter.

isCCW

readonly isCCW: boolean;

判断椭圆弧是不是逆时针方向

Get whether the arc is ccw or not.

majorRadius

readonly majorRadius: number;

获取当前椭圆弧的长轴半径。

Get major radius of the elliptical arc.

minorRadius

readonly minorRadius: number;

获取当前椭圆弧的短轴半径。

Get minor radius of the elliptical arc.

startParam

readonly startParam: number;

获取椭圆弧的起点参数

Get the start parameter.

方法

getTangent

getTangent(point: KPoint2d): KVector2d;

获得椭圆弧上一点处的切向量。 注意:该函数调用需要确保传入点在椭圆弧上。

Get tangent vector of a point on the elliptical arc. NOTE: the caller needs to make sure the point is on the arc.

参数:

  • point: KPoint2d

    椭圆弧上一点。

    A point on the arc.

返回值: KVector2d

切向量。

The tangent vector.