| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
scene |
Scene | The Cesium scene. | ||||||||||||||||||||||||||||||||
options |
object |
optional
Options.
|
Methods
Generate positions for a circle of given radius in the plane perpendicular
to the given axis (0=X → YZ, 1=Y → XZ, 2=Z → XY).
Local model matrix that translates + rotates a Z-aligned cone
to sit at the tip of the given axis.
Build all polylines (arrow shafts and/or rotation circles) in a single
PolylineCollection, plus cone head Primitive. Geometry is in local ENU
coordinates (unit scale); the modelMatrix handles world positioning + scaling.
Find the parameter `s` on the axis line closest to a camera ray.
Axis line: A(s) = P + s * D
Ray: B(t) = O + t * R
End the active drag: restore the entity's position/orientation to a
constant value (exit CallbackProperty) and re-enable the camera controller.
Called by the scene each frame. Uses PolylineCollection (dynamic modelMatrix)
for lines and Primitive.modelMatrix for cones, so geometry only rebuilds
when entity or show flags change — NOT when the camera moves.