WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. Cubios::Math::Transform
Mission NodeSDK 6.1C++gfx engine

Cubios::Math::Transform

Cubios::Math::Transform Constructors Transform Summary Constructs transform object that includes position, rotation and mirroring mode Synopsis Transform() A...

API / SDK 6.1 / C++ / gfx engine

Cubios::Math::Transform

Constructors

Transform

Summary

Constructs transform object that includes position, rotation and mirroring mode

Synopsis

Cubios::Math::Transform
CPP
1Transform()
2
Wrapped 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
CPP
1Transform(float x, float y)
2
Wrapped 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
CPP
1Transform(float x, float y, unsigned int a, unsigned int sx, unsigned int sy)
2
Wrapped 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
CPP
1Transform(float x, float y, unsigned int a, unsigned int sx, unsigned int sy, unsigned int m)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Arguments

  • t - source Transform object

Synopsis

Cubios::Math::Transform
CPP
1Transform(const Transform& t)
2
Wrapped 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
CPP
1Vec2 Position
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Rotation

Summary

Rotation angle in degrees, [0, 360]

Synopsis

Cubios::Math::Transform
CPP
1int Rotation
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

ScaleX

Summary

Horizontal scale coefficient, [0, 100]

Synopsis

Cubios::Math::Transform
CPP
1int ScaleX
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

ScaleY

Summary

Vertical scale coefficient, [0, 100]

Synopsis

Cubios::Math::Transform
CPP
1int ScaleY
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Mirroring

Summary

Mirroring mode

Synopsis

Cubios::Math::Transform
CPP
1unsigned int Mirroring
2
Wrapped 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
CPP
1int SafeRotation()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Jump Grid

On This Page

ConstructorsTransformPublic MembersPositionRotationScaleXScaleYMirroringPublic MethodsSafeRotation
Context Rail

Related nodes

Cubios::Math
API / SDK 6.1 / C++ / gfx engine
Cubios::Math::Vec2
API / SDK 6.1 / C++ / gfx engine
Cubios::Math::Color
API / SDK 6.1 / C++ / gfx engine
Cubios::Gfx::Colors
API / SDK 6.1 / C++ / gfx engine
Previous Node
Cubios::Math::Vec2
API / SDK 6.1 / C++ / gfx engine
Next Node
Cubios::Math::Color
API / SDK 6.1 / C++ / gfx engine