Aurelon Open API 8.1.1
Loading...
Searching...
No Matches
AOI_Mapping Class Reference

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 ()
 

Detailed Description

3x3 matrix

Definition at line 112 of file AOI_Types.h.

Constructor & Destructor Documentation

◆ AOI_Mapping() [1/4]

AOI_Mapping::AOI_Mapping ( )

Constructs an identity 3x3 map

Definition at line 157 of file AOI_Types.cpp.

◆ AOI_Mapping() [2/4]

AOI_Mapping::AOI_Mapping ( const AOI_Mapping & inMap)

Constructs a mapping as a copy of the given mapping.

Parameters
inMapSource mapping to copy.

Definition at line 167 of file AOI_Types.cpp.

◆ AOI_Mapping() [3/4]

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:

  • 0,0
  • 0,1
  • 0,2
  • 1,0
  • 1,1
  • 1,2
  • 2,0
  • 2,1
  • 2,2
Parameters
arrayArray of 9 values

Definition at line 187 of file AOI_Types.cpp.

◆ AOI_Mapping() [4/4]

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:

  • 0,0
  • 0,1
  • 0,2
  • 1,0
  • 1,1
  • 1,2
  • 2,0
  • 2,1
  • 2,2
Parameters
arrayArray of 9 values

Definition at line 207 of file AOI_Types.cpp.

Member Function Documentation

◆ Check()

void AOI_Mapping::Check ( )

Checks and corrects the mapping for numeric instability issues.

Definition at line 452 of file AOI_Types.cpp.

◆ Determinant()

float AOI_Mapping::Determinant ( ) const

Returns the determinant of the mapping.

Returns
Determinant

Definition at line 409 of file AOI_Types.cpp.

◆ Invert()

void AOI_Mapping::Invert ( )

Converts the mapping to its inverse.

Definition at line 234 of file AOI_Types.cpp.

◆ IsMove()

bool AOI_Mapping::IsMove ( ) const

Checks if the mapping contains a translation vector

Returns
True when the mapping contains a translation vector

Definition at line 431 of file AOI_Types.cpp.

◆ IsScale()

bool AOI_Mapping::IsScale ( ) const

Checks if the mapping contains a scale

Returns
True when the mapping contains a scale

Definition at line 442 of file AOI_Types.cpp.

◆ IsUnity()

bool AOI_Mapping::IsUnity ( ) const

Checks if the mapping is identity

Returns
True when the mapping is identity

Definition at line 419 of file AOI_Types.cpp.

◆ Map()

void AOI_Mapping::Map ( const AOI_Mapping & in)

Concatenates the mapping with the given mapping. This is a multiple mapping.

Parameters
inMapping to concatenate.

Definition at line 384 of file AOI_Types.cpp.

◆ Move()

void AOI_Mapping::Move ( float dx,
float dy )

Adds the given translation vector to the mapping.

Parameters
dxHorizontal translation
dyVertical translation

Definition at line 301 of file AOI_Types.cpp.

◆ Reset()

void AOI_Mapping::Reset ( )

Resets the mapping to identity

Definition at line 223 of file AOI_Types.cpp.

◆ Rotate()

void AOI_Mapping::Rotate ( float degreeAngle,
float x,
float y )

Rotates the mapping by the given degrees CCW around the given coordinate.

Parameters
degreeAngleThe angle of rotation in degrees.
xx-coordinate of the center of rotation
yy-coordinate of the center of rotation

Definition at line 314 of file AOI_Types.cpp.

◆ Scale()

void AOI_Mapping::Scale ( float x,
float y,
float sx,
float sy )

Scales the mapping from the given coordinate.

Parameters
xx-coordinate of the center of rotation
yy-coordinate of the center of rotation
sxHorizontal scale factor
syVertical scale factor

Definition at line 352 of file AOI_Types.cpp.

◆ Skew()

void AOI_Mapping::Skew ( float x,
float y,
float sx,
float sy )

Skews the mapping around the given coordinate.

Parameters
xx-coordinate of the center of rotation
yy-coordinate of the center of rotation
sxHorizontal skew
syVertical skew

Definition at line 369 of file AOI_Types.cpp.


The documentation for this class was generated from the following files: