Cubios::Math::Transform
Constructors
Transform
Summary
Constructs transform object that includes position, rotation and mirroring mode
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Arguments
- x - x value of Position
- y - y value of Position
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Arguments
- x - x value of Position
- y - y value of Position
- a - initial rotation angle
- sx - horizontal scale coefficient
- sy - vertical scale coefficient
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Arguments
- x - x value of Position
- y - y value of Position
- a - initial rotation angle
- sx - horizontal scale coefficient
- sy - vertical scale coefficient
- m - initial mirroring mode
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Arguments
- t - source Transform object
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Public Members
Position
Summary
Two-component vector that holds transform position data
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Rotation
Summary
Rotation angle in degrees, [0, 360]
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
ScaleX
Summary
Horizontal scale coefficient, [0, 100]
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
ScaleY
Summary
Vertical scale coefficient, [0, 100]
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Mirroring
Summary
Mirroring mode
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.
Public Methods
SafeRotation
Summary
Returns current value of rotation in the range from 0 to 360 degrees
Synopsis
Cubios::Math::Transform
CPPWrapped for easier reading. Turn wrap off to inspect exact line lengths.