Class SpaceTransform

Class Documentation

class SpaceTransform

Simple class for holding the position, rotation and scale of a transform.

Public Functions

SpaceTransform()

Default constuctor for the SpaceTransform.

SpaceTransform(const csp::common::Vector3 &Position, const csp::common::Vector4 &Rotation, const csp::common::Vector3 &Scale)

Custom constructor for the SpaceTransform.

Parameters
bool operator==(const SpaceTransform &Transform) const

Equality operator.

Parameters

SpaceTransform – Transform

bool operator!=(const SpaceTransform &Transform) const

Inequality operator.

Parameters

SpaceTransform – Transform

SpaceTransform operator*(const SpaceTransform &Transform) const

Multiplication operator.

Note

This performs TRS matrix composition, then decomposes back to Pos, Rot, Scale.

Parameters

SpaceTransform – Transform

Public Members

csp::common::Vector3 Position

The position value for the transform.

csp::common::Vector4 Rotation

The rotation value for the transform.

csp::common::Vector3 Scale

The scale value for the transform.