Transform



Describes transformation.

You can find more information in comments below.

struct Transform
{
    union
    {
        struct
        {
            float Tx; // Translate X 
            float Ty; // Translate Y 
            float Tz; // Translate Z 
            float Sx; // Scale X 
            float Sy; // Scale Y 
            float Sz; // Scale Z 
            float Rx; // Rotate X 
            float Ry; // Rotate Y 
            float Rz; // Rotate Z 
        };
        struct
        {
            Vec3f Translation;
            Vec3f Scaling;
            Vec3f Rotation;
        };
    };
    nitisa::RotateOrder RotateOrder; // Rotate order 
    nitisa::TransformOrder TransformOrder; // Transform order 
};

Following operators are also available.

std::wostream &operator<<(std::wostream &stream, const Transform &a); // Output as source code
Namespace: nitisa
Include: Nitisa/Math/Transform.h