![]() |
Maria GDK 5.0.0.897
Documentation of native code in develop branch
|
#include <StkTransform2.h>
Public Member Functions | |
| Transform2 (Type m11, Type m12, Type m21, Type m22, Type offsX, Type offsY) | |
| Transform2 (Type f[6]) | |
| Type | operator[] (int i) const |
| Type & | operator[] (int i) |
| void | identity () |
| void | multiply (const Transform2 &t) |
| void | translate (const STK::Vector2< Type > &offs) |
| void | scale (Type factor) |
| void | scale (const STK::Vector2< Type > &scale) |
| void | rotate (Type angle) |
| STK::Vector2< Type > | transform (const STK::Vector2< Type > &pt) const |
| void | transform (const STK::Vector2< Type > *from, STK::Vector2< Type > *to, int count) const |
| void | transform (std::vector< STK::Vector2< Type > > &v) const |
| Type | determinant () const |
| bool | invert (const Transform2 &a) |
Transform2 - 2D Transformation class. Based on BasicGeoTypes::Transform2 but templatized, and compatible with STK vector classes.
Order of transformations: Transforms are combined as usual with right multiplication so that
xfm.translate(STK::Vector2f(2, 3)); xfm.rotate(90.0);
Will first rotate 90 degrees, then translate by (2,3). (v = T*R*v0)
|
inline |
rotate degrees clockwise