Inherits ScriptObject.
Public Member Functions | |
| CurveEntity () | |
| Number | getLength () |
| Number | getRadius () |
| Boolean | isBigArc () |
| Number | getSweep () |
| reverse () | |
| translate (Vector offset) | |
Static Public Member Functions | |
| static CurveEntity | getLine (Vector start, Vector end) |
| static CurveEntity | getArc (Vector start, Vector end, Vector center, Boolean clockwise) |
Public Attributes | |
| Boolean | arc |
| True for arc. Otherwise a line. | |
| Boolean | clockwise |
| The direction of the arc. Clockwise or counterclockwise. | |
| Vector | start |
| The start position. The Z coordinate is always 0. | |
| Vector | center |
| The center for an arc. The Z coordinate is always 0. | |
| Vector | end |
| The end position. The Z coordinate is always 0. | |
Curve entity.
| CurveEntity | ( | ) |
Constructs a Curve entity.
|
static |
Makes an arc entity.
| Number getLength | ( | ) |
Returns the length of the entity.
|
static |
Makes a line entity.
| Number getRadius | ( | ) |
Returns the radius of the arc entity as defined by the end and center.
| Number getSweep | ( | ) |
Returns the sweep for the arc entity.
| Boolean isBigArc | ( | ) |
Returns true if the arc entity if big. Sweep > 180deg.
| reverse | ( | ) |
Reverses the entity.
| translate | ( | Vector | offset | ) |
Translates the entity. Z is ignored.