Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXMat2f Class Reference

Single-precision 2x2 matrix. More...

#include <FXMat2f.h>

Public Member Functions

 FXMat2f ()
 Default constructor; value is not initialized.
 
 FXMat2f (FXfloat s)
 Initialize matrix from scalar.
 
 FXMat2f (FXfloat a00, FXfloat a01, FXfloat a10, FXfloat a11)
 Initialize matrix from components.
 
 FXMat2f (const FXMat2f &s)
 Initialize matrix from another matrix.
 
 FXMat2f (const FXMat3f &s)
 Initialize from rotation and scaling part of 3x3 matrix.
 
 FXMat2f (const FXVec2f &a, const FXVec2f &b)
 Initialize matrix from three vectors.
 
 FXMat2f (FXfloat a, FXfloat b)
 Initialize diagonal matrix.
 
 FXMat2f (const FXVec2f &d)
 Initialize diagonal matrix.
 
 FXMat2f (const FXfloat s[])
 Initialize matrix from array.
 
FXMat2f & operator= (FXfloat s)
 Assignment from scalar.
 
FXMat2f & operator= (const FXMat2f &s)
 Assignment.
 
FXMat2f & operator= (const FXMat3f &s)
 
FXMat2f & operator= (const FXfloat s[])
 Assignment from array.
 
FXMat2f & set (FXfloat s)
 Set value from scalar.
 
FXMat2f & set (FXfloat a00, FXfloat a01, FXfloat a10, FXfloat a11)
 Set value from components.
 
FXMat2f & set (const FXMat2f &s)
 Set value from another matrix.
 
FXMat2f & set (const FXMat3f &s)
 Set from rotation and scaling part of 3x3 matrix.
 
FXMat2f & set (const FXVec2f &a, const FXVec2f &b)
 Set value from two vectors.
 
FXMat2f & set (FXfloat a, FXfloat b)
 Set diagonal matrix.
 
FXMat2f & set (const FXVec2f &d)
 Initialize diagonal matrix.
 
FXMat2f & set (const FXfloat s[])
 Set value from array.
 
FXMat2f & operator+= (const FXMat2f &s)
 Assignment operators.
 
FXMat2f & operator-= (const FXMat2f &s)
 
FXMat2f & operator*= (const FXMat2f &s)
 
FXMat2f & operator*= (FXfloat s)
 
FXMat2f & operator/= (FXfloat s)
 
FXVec2f & operator[] (FXint i)
 Indexing.
 
const FXVec2f & operator[] (FXint i) const
 
 operator FXfloat * ()
 Conversion.
 
 operator const FXfloat * () const
 
FXMat2f operator- () const
 Unary minus.
 
FXMat2f & identity ()
 Set to identity matrix.
 
FXbool isIdentity () const
 Return true if identity matrix.
 
FXMat2f & rot (FXfloat c, FXfloat s)
 Multiply by rotation of phi.
 
FXMat2f & rot (FXfloat phi)
 
FXMat2f & scale (FXfloat sx, FXfloat sy)
 Multiply by scaling.
 
FXMat2f & scale (FXfloat s)
 
FXfloat det () const
 Determinant.
 
FXMat2f transpose () const
 Transpose.
 
FXMat2f invert () const
 Invert.
 
 ~FXMat2f ()
 Destructor.
 

Protected Attributes

FXVec2f m [2]
 

Detailed Description

Single-precision 2x2 matrix.


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

Copyright © 1997-2026 Jeroen van der Zijp