Class CoordinateSystem

Represents a 3D coordinate system.

A CoordinateSystem defines 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, and scaleToMeters properties, as well as a general onUpdated event whenever any of these properties change. The directional vectors worldUp, worldRight, and worldForward are derived from the basis and represent the orientation of the coordinate system in world space.

Properties

destroyed: boolean = false

True if this CoordinateSystem has been destroyed.

Accessors

  • get units(): "meters" | "millimeters" | "inches" | "feet"

    Gets the unit system used.

    Returns "meters" | "millimeters" | "inches" | "feet"

  • set units(value: "meters" | "millimeters" | "inches" | "feet"): void

    Sets the unit system used. Emits event on change, via Scene.events.coordSystemUnits or SceneModel.events.modelCoordSystemUnits.

    Parameters

    • value: "meters" | "millimeters" | "inches" | "feet"

    Returns void

Methods