Skip to main content

ChunkMatrix

A class in Root.Township, Alta.Chunks.

Wraps a transform matrix and applies it in place to positions, rotations and directions.

Constructors​

MemberWhat it is
ChunkMatrix(Matrix4x4 matrix)Creates a ChunkMatrix from matrix.

Fields​

1 private and internal field
MemberWhat it is
private Matrix4x4 matrixThe wrapped matrix.

Methods​

MemberWhat it is
void Direction(ref Vector3 direction)Transforms a direction by the matrix, in place.
void Position(ref Vector3 position)Transforms a point by the matrix, in place.
void Rotation(ref Quaternion rotation)Applies the matrix's rotation to a rotation, in place.

Used in​

Members of other types that take, return or hold a ChunkMatrix: