Angle
Represents an angle defined by three points in 3D space: a start point, a vertex (center), and an end point. The angle is computed as the angle between the vectors (vertex -> start) and (vertex -> end).
Properties
end
end:
Vector3
The second point of the angle.
id
id:
string
Unique identifier for this angle instance.
start
start:
Vector3
The first point of the angle.
vertex
vertex:
Vector3
The vertex (center) of the angle where the two rays meet.
Accessors
rawValue
getrawValue():number
The angle in radians, without unit conversion or rounding. Returns 0 when either ray has zero length.
Returns
number
rounding
setrounding(value):void
The number of decimal places used when computing value.
Parameters
| Parameter | Type |
|---|---|
value | number |
units
setunits(value):void
The unit system used for displaying the angle value.
Parameters
| Parameter | Type |
|---|---|
value | "deg" | "rad" |
value
getvalue():number
The angle converted to the current units and rounded to rounding decimal places.
Returns
number
Methods
clone()
clone():
Angle
Creates a deep copy of this angle, preserving all points, units, and rounding.