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

FX::FXMat2d Class Reference

Double-precision 2x2 matrix. More...

#include <FXMat2d.h>

Public Member Functions

 FXMat2d ()
 Default constructor; value is not initialized.
 
 FXMat2d (FXdouble s)
 Initialize matrix from scalar.
 
 FXMat2d (const FXMat2d &s)
 Initialize matrix from another matrix.
 
 FXMat2d (const FXMat3d &s)
 Initialize from rotation and scaling part of 3x3 matrix.
 
 FXMat2d (const FXdouble s[])
 Initialize matrix from array.
 
 FXMat2d (FXdouble a, FXdouble b)
 Initialize diagonal matrix.
 
 FXMat2d (FXdouble a00, FXdouble a01, FXdouble a10, FXdouble a11)
 Initialize matrix from components.
 
 FXMat2d (const FXVec2d &a, const FXVec2d &b)
 Initialize matrix from two vectors.
 
FXMat2doperator= (FXdouble s)
 Assignment from scalar.
 
FXMat2doperator= (const FXMat2d &s)
 Assignment.
 
FXMat2doperator= (const FXMat3d &s)
 
FXMat2doperator= (const FXdouble s[])
 Assignment from array.
 
FXMat2dset (FXdouble s)
 Set value from scalar.
 
FXMat2dset (const FXMat2d &s)
 Set value from another matrix.
 
FXMat2dset (const FXMat3d &s)
 Set from rotation and scaling part of 3x3 matrix.
 
FXMat2dset (const FXdouble s[])
 Set value from array.
 
FXMat2dset (FXdouble a, FXdouble b)
 Set diagonal matrix.
 
FXMat2dset (FXdouble a00, FXdouble a01, FXdouble a10, FXdouble a11)
 Set value from components.
 
FXMat2dset (const FXVec2d &a, const FXVec2d &b)
 Set value from two vectors.
 
FXMat2doperator+= (const FXMat2d &s)
 Assignment operators.
 
FXMat2doperator-= (const FXMat2d &s)
 
FXMat2doperator*= (const FXMat2d &s)
 
FXMat2doperator*= (FXdouble s)
 
FXMat2doperator/= (FXdouble s)
 
FXVec2doperator[] (FXint i)
 Indexing.
 
const FXVec2doperator[] (FXint i) const
 
 operator FXdouble * ()
 Conversion.
 
 operator const FXdouble * () const
 
FXMat2d operator- () const
 Unary minus.
 
FXMat2didentity ()
 Set to identity matrix.
 
FXbool isIdentity () const
 Return true if identity matrix.
 
FXMat2drot (FXdouble c, FXdouble s)
 Multiply by rotation of phi.
 
FXMat2drot (FXdouble phi)
 
FXMat2dscale (FXdouble sx, FXdouble sy)
 Multiply by scaling.
 
FXMat2dscale (FXdouble s)
 
FXdouble det () const
 Determinant.
 
FXMat2d transpose () const
 Transpose.
 
FXMat2d invert () const
 Invert.
 
 ~FXMat2d ()
 Destructor.
 

Protected Attributes

FXVec2d m [2]
 

Detailed Description

Double-precision 2x2 matrix.


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

Copyright © 1997-2022 Jeroen van der Zijp