跳到主要内容

KEllipticalArc2d interface

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

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

Signature:

export interface KEllipticalArc2d extends KBoundedCurve2d 

Links: export interface KEllipticalArc2d extends KBoundedCurve2d

Extends: KBoundedCurve2d

Properties

Property

Modifiers

Type

Description

center

readonly

KPoint2d

获取当前椭圆弧的圆心。

Get center of the elliptical arc.

endParam

readonly

number

获取椭圆弧的终点参数

Get the end parameter.

isCCW

readonly

boolean

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

Get whether the arc is ccw or not.

majorRadius

readonly

number

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

Get major radius of the elliptical arc.

minorRadius

readonly

number

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

Get minor radius of the elliptical arc.

startParam

readonly

number

获取椭圆弧的起点参数

Get the start parameter.

Methods

Method

Description

getTangent(point)

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

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