Skip to content

Math

Vectors, quaternions, and matrix types used by camera operations and entity properties.

math

Math types for cesiumkit: rotations, quaternions, and related structures.

Classes:

Name Description
HeadingPitchRoll

Rotation defined by heading, pitch, and roll in radians.

HeadingPitchRollFromDegrees

HeadingPitchRoll from degree values.

HeadingPitchRange

Camera offset defined by heading, pitch, and range.

Quaternion

A rotation represented as a quaternion.

Matrix3

A 3x3 matrix stored as 9 values in column-major order.

Matrix4

A 4x4 matrix stored as 16 values in column-major order.

HeadingPitchRoll

Bases: CesiumBase

Rotation defined by heading, pitch, and roll in radians.

Methods:

Name Description
from_degrees

Create from values in degrees.

from_degrees classmethod

from_degrees(
    heading: float = 0.0, pitch: float = 0.0, roll: float = 0.0
) -> HeadingPitchRollFromDegrees

Create from values in degrees.

HeadingPitchRollFromDegrees

Bases: CesiumBase

HeadingPitchRoll from degree values.

HeadingPitchRange

Bases: CesiumBase

Camera offset defined by heading, pitch, and range.

Quaternion

Bases: CesiumBase

A rotation represented as a quaternion.

Matrix3

Bases: CesiumBase

A 3x3 matrix stored as 9 values in column-major order.

Matrix4

Bases: CesiumBase

A 4x4 matrix stored as 16 values in column-major order.