Aurelon Open API 8.1.1
|
3x3 matrix More...
Public Member Functions | |
AOI_Mapping () | |
AOI_Mapping (const AOI_Mapping &) | |
AOI_Mapping (const float *) | |
AOI_Mapping (const double *) | |
void | Reset () |
void | Invert () |
void | Move (float, float) |
void | Rotate (float, float, float) |
void | Scale (float, float, float, float) |
void | Skew (float, float, float, float) |
void | Map (const AOI_Mapping &) |
float | Determinant () const |
bool | IsUnity () const |
bool | IsMove () const |
bool | IsScale () const |
void | Check () |
3x3 matrix
Definition at line 112 of file AOI_Types.h.
AOI_Mapping::AOI_Mapping | ( | ) |
Constructs an identity 3x3 map
Definition at line 157 of file AOI_Types.cpp.
AOI_Mapping::AOI_Mapping | ( | const AOI_Mapping & | inMap | ) |
Constructs a mapping as a copy of the given mapping.
inMap | Source mapping to copy. |
Definition at line 167 of file AOI_Types.cpp.
AOI_Mapping::AOI_Mapping | ( | const float * | array | ) |
Constructs a mapping from an array of 9 values. The values are to be ordered in European format:
array | Array of 9 values |
Definition at line 187 of file AOI_Types.cpp.
AOI_Mapping::AOI_Mapping | ( | const double * | array | ) |
Constructs a mapping from an array of 9 values. The values are to be ordered in European format:
array | Array of 9 values |
Definition at line 207 of file AOI_Types.cpp.
void AOI_Mapping::Check | ( | ) |
Checks and corrects the mapping for numeric instability issues.
Definition at line 452 of file AOI_Types.cpp.
float AOI_Mapping::Determinant | ( | ) | const |
Returns the determinant of the mapping.
Definition at line 409 of file AOI_Types.cpp.
void AOI_Mapping::Invert | ( | ) |
Converts the mapping to its inverse.
Definition at line 234 of file AOI_Types.cpp.
bool AOI_Mapping::IsMove | ( | ) | const |
Checks if the mapping contains a translation vector
Definition at line 431 of file AOI_Types.cpp.
bool AOI_Mapping::IsScale | ( | ) | const |
Checks if the mapping contains a scale
Definition at line 442 of file AOI_Types.cpp.
bool AOI_Mapping::IsUnity | ( | ) | const |
Checks if the mapping is identity
Definition at line 419 of file AOI_Types.cpp.
void AOI_Mapping::Map | ( | const AOI_Mapping & | in | ) |
Concatenates the mapping with the given mapping. This is a multiple mapping.
in | Mapping to concatenate. |
Definition at line 384 of file AOI_Types.cpp.
void AOI_Mapping::Move | ( | float | dx, |
float | dy ) |
Adds the given translation vector to the mapping.
dx | Horizontal translation |
dy | Vertical translation |
Definition at line 301 of file AOI_Types.cpp.
void AOI_Mapping::Reset | ( | ) |
Resets the mapping to identity
Definition at line 223 of file AOI_Types.cpp.
void AOI_Mapping::Rotate | ( | float | degreeAngle, |
float | x, | ||
float | y ) |
Rotates the mapping by the given degrees CCW around the given coordinate.
degreeAngle | The angle of rotation in degrees. |
x | x-coordinate of the center of rotation |
y | y-coordinate of the center of rotation |
Definition at line 314 of file AOI_Types.cpp.
void AOI_Mapping::Scale | ( | float | x, |
float | y, | ||
float | sx, | ||
float | sy ) |
Scales the mapping from the given coordinate.
x | x-coordinate of the center of rotation |
y | y-coordinate of the center of rotation |
sx | Horizontal scale factor |
sy | Vertical scale factor |
Definition at line 352 of file AOI_Types.cpp.
void AOI_Mapping::Skew | ( | float | x, |
float | y, | ||
float | sx, | ||
float | sy ) |
Skews the mapping around the given coordinate.
x | x-coordinate of the center of rotation |
y | y-coordinate of the center of rotation |
sx | Horizontal skew |
sy | Vertical skew |
Definition at line 369 of file AOI_Types.cpp.