Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. Official WOWCube Development Kit

WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelogDeveloper Toolkit
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.

Unofficial community resource. Not affiliated with, maintained by, or endorsed by WOWCube / Cubios Inc. Cubios Inc. does not guarantee the accuracy or completeness of this content. For official documentation and the SDK, see the WOWCube Development Kit.

Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. Cubios::Math::Transform
Mission NodeSDK 6.3C++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.3 / C++ / gfx engine
VersionSDK 6.3SDK 6.2SDK 6.1
Report issue

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.

Trust & provenance

Document status

Source
Math-Transform · installed SDK headers
Classification
API reference
Verification
Community-maintained · verify against installed SDK

Catalog updated Oct 20, 2018

Structured index

Symbols on this page

Names and signatures are extracted from this SDK-derived page. Signature hashes detect accidental changes.

Cubios::Math::TransformClass
ConstructorsMember
TransformMember
Public MembersMember
PositionMember
RotationMember
ScaleXMember
ScaleYMember
MirroringMember
Public MethodsMember
SafeRotationMember

Used in SDK snippets

Transform→GfxBitmaps.cppTransform→GfxBitmaps.cppTransform→GfxBitmaps.cppTransform→GfxSpriteAtlas.hTransform→GfxSpriteAtlas.h
Jump Grid

On This Page

ConstructorsTransformPublic MembersPositionRotationScaleXScaleYMirroringPublic MethodsSafeRotation
Back to top ↑
Context Rail

Related nodes

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