Function composeMat4Euler

  • Composes a 4x4 matrix from position, Euler rotation angles, and scale. The Euler angles are converted to a quaternion for rotation.

    Parameters

    • position: Vec3

      The position vector to translate by.

    • rotation: Vec3

      The Euler angles for rotation (in radians).

    • scale: Vec3

      The scaling factor for each axis.

    • mat: Mat4 = ...

      An optional pre-allocated matrix for the result. Defaults to an identity matrix.

    Returns Mat4

    The resulting composed matrix.