Kanzi 3.9.10
matrix3x3.hpp File Reference

Classes

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

Namespaces

namespace  kanzi
 

Functions

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