Kanzi  3.9.4
Kanzi Engine API
matrix3x3.hpp File Reference

Classes

class  kanzi::Matrix3x3
 Matrix with 3x3 elements. More...
 

Namespaces

 kanzi
 Easing functions that require external dependencies for calculation.
 

Functions

bool kanzi::extractSRT (const Matrix3x3 &matrix, Vector2 &scale, float &rotationInRadians, Vector2 &translation)
 Extracts scale, rotation and translation information from a matrix. More...
 
float kanzi::getDeterminant (const Matrix3x3 &matrix)
 Calculates the determinant of the matrix. More...
 
float kanzi::getDeterminant2x2 (const Matrix3x3 &matrix)
 Calculates the determinant of the 2X2 part of a matrix. More...
 
float kanzi::getTrace (const Matrix3x3 &matrix)
 Calculates the trace of a matrix. More...
 
optional< Matrix3x3 > kanzi::inverse (const Matrix3x3 &matrix)
 Applies an inversion to a matrix. More...
 
optional< Matrix3x3 > kanzi::inverseAffine (const Matrix3x3 &matrix)
 Applies an inversion to an affine matrix. More...
 
bool kanzi::isScalingOnly (const Matrix3x3 &matrix)
 Determines whether a matrix is scaling-only. More...
 
bool kanzi::isTranslationOnly (const Matrix3x3 &matrix)
 Determines whether a matrix is translation-only. More...
 
Vector2 kanzi::matrixMultiplyVectorBy2x2 (const Matrix3x3 &matrix, const Vector2 vector)
 Multiply a 2D vector with the top 2x2 part of a given matrix. More...
 
optional< Matrix3x3 > kanzi::normalized (const Matrix3x3 &matrix)
 Normalizes the input matrix. More...
 
bool kanzi::operator!= (Matrix3x3 left, Matrix3x3 right)
 Inequality operator. More...
 
Matrix3x3 kanzi::operator* (Matrix3x3 m1, Matrix3x3 m2)
 Multiplies two matrices and returns the product. More...
 
Vector2 kanzi::operator* (Matrix3x3 m, Vector2 v)
 Multiplies matrix with vector and returns the product. More...
 
Vector3 kanzi::operator* (Matrix3x3 m, Vector3 v)
 Multiplies matrix with vector and returns the product. More...
 
bool kanzi::operator== (Matrix3x3 left, Matrix3x3 right)
 Equality operator. More...