Class: DefArcLength

algeobra~DefArcLength()

Definition of arc length Computes the arc length of an arc

Constructor

new DefArcLength()

Source:

Methods

compute(createInfo) → {Object}

Compute the arc length
Parameters:
Name Type Description
createInfo CreateInfo The creation info
Source:
Returns:
The arc length as a TYPE_NUMBER
Type
Object

(static) calcArcLength(r, startAngle, endAngle) → {Number}

Compute the arc length of an arc
Parameters:
Name Type Description
r Number The arc radius
startAngle Number The arc starting angle
endAngle Number The arc end angle
Source:
Returns:
The arc length
Type
Number

(static) fromArc(arc) → {CreateInfo}

Compute arc length for an arc
Parameters:
Name Type Description
arc Number | Object Either the index or value of a TYPE_ARC
Source:
Returns:
The creation info
Type
CreateInfo

(static) fromValues(r, startAngle, endAngle) → {CreateInfo}

Compute arc length for an arc
Parameters:
Name Type Description
r Number | Object Either the index or value of a TYPE_NUMBER. The arc radius
startAngle Number | Object Either the index or value of a TYPE_NUMBER. The arc starting angle
endAngle Number | Object Either the index or value of a TYPE_NUMBER. The arc end angle
Source:
Returns:
The creation info
Type
CreateInfo