CoordinateSystemAPI¶
Interface CoordinateSystemAPI
interface CoordinateSystemAPI {
getCoordinateSystemForwardVector(): | Float32Array<ArrayBufferLike>
| [number, number, number];
getCoordinateSystemMatrix(): | Float32Array<ArrayBufferLike>
| [
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
];
getCoordinateSystemRightVector(): | Float32Array<ArrayBufferLike>
| [number, number, number];
getCoordinateSystemUpVector(): | Float32Array<ArrayBufferLike>
| [number, number, number];
}
getCoordinateSystemForwardVector(): | Float32Array<ArrayBufferLike>
| [number, number, number];
getCoordinateSystemMatrix(): | Float32Array<ArrayBufferLike>
| [
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
];
getCoordinateSystemRightVector(): | Float32Array<ArrayBufferLike>
| [number, number, number];
getCoordinateSystemUpVector(): | Float32Array<ArrayBufferLike>
| [number, number, number];
}
Hierarchy (View Summary)
- CoordinateSystemAPI
Methods
get Coordinate System Forward Vector
Returns the forward vector of the current coordinate system.
Returns Float32Array<ArrayBufferLike> | [number, number, number]
The forward vector of the current coordinate system.
get Coordinate System Matrix
- getCoordinateSystemMatrix(): | Float32Array<ArrayBufferLike>
| [
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
]This function returns a 4x4 transformation matrix that transforms the default right-handed coordinate system, where the x-axis points right, the y-axis points up, and the z-axis points forward (towards the viewer), to a custom coordinate system defined by the front plane axis setting.
Returns
| Float32Array<ArrayBufferLike>
| [
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
number,
]The 4x4 coordinate system matrix
get Coordinate System Right Vector
Returns the right vector of the current coordinate system.
Returns Float32Array<ArrayBufferLike> | [number, number, number]
The right vector of the current coordinate system.
get Coordinate System Up Vector
Returns the up vector of the current coordinate system.
Returns Float32Array<ArrayBufferLike> | [number, number, number]
The up vector of the current coordinate system.
CoordinateSystemAPI
Overview
The
CoordinateSystemAPIprovides methods to retrieve the current (right-handed) coordinate system's transformation matrix and its right, up, and forward vectors. All information are based on the front plane axis setting which defines the orientation of the front plane of the model in the 3D space.Quick Start
To read out the current coordinate system as well as the currently set front plane axis setting, you can use the following code:
To change the transformations, change the front plane axis setting:
See