Gets the optional scale-to-meters multiplier.
Sets the optional scale-to-meters multiplier.
Emits event on change, via Scene.events.coordSystemMeters or SceneModel.events.modelCoordSystemMeters.
Gets the unit system used.
Sets the unit system used.
Emits event on change, via Scene.events.coordSystemUnits or SceneModel.events.modelCoordSystemUnits.
Gets the direction of World-space "forwards".
This is set by CoordinateSystem.basis.
Default value is [0,0,-1].
The "forwards" vector.
Gets the direction of World-space "right".
This is set by CoordinateSystem.basis.
Default value is [1,0,0].
The "right" vector.
Gets the direction of World-space "up".
This is set by CoordinateSystem.basis.
Default value is [0,0,1].
The "up" vector.
Gets if the World-space X-axis is "up".
Gets if the World-space Y-axis is "up".
Gets if the World-space Z-axis is "up".
Updates this instance's state from a CoordinateSystemParams object.
Returns a copy of the current state as a CoordinateSystemParams object.
Represents a 3D coordinate system.
A
CoordinateSystemdefines a spatial reference frame using a 3x3 basis matrix and an origin point in global space. It also supports various unit systems and an optional scale-to-meters factor for unit normalization.Used by Scene and SceneModel components to define and manage spatial context for scene content.
This class emits change events (via its Scene or SceneModel) for updates to its
basis,origin,units, andscaleToMetersproperties, as well as a generalonUpdatedevent whenever any of these properties change. The directional vectorsworldUp,worldRight, andworldForwardare derived from the basis and represent the orientation of the coordinate system in world space.