Urho3D
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
Urho3D::Matrix3 Class Reference

3x3 matrix for rotation and scaling. More...

#include <Matrix3.h>

List of all members.

Public Member Functions

 Matrix3 ()
 Construct undefined.
 Matrix3 (const Matrix3 &matrix)
 Copy-construct from another matrix.
 Matrix3 (float v00, float v01, float v02, float v10, float v11, float v12, float v20, float v21, float v22)
 Construct from values.
 Matrix3 (const float *data)
 Construct from a float array.
Matrix3operator= (const Matrix3 &rhs)
 Assign from another matrix.
Vector3 operator* (const Vector3 &rhs) const
 Multiply a Vector3.
Matrix3 operator+ (const Matrix3 &rhs) const
 Add a matrix.
Matrix3 operator- (const Matrix3 &rhs) const
 Subtract a matrix.
Matrix3 operator* (float rhs) const
 Multiply with a scalar.
Matrix3 operator* (const Matrix3 &rhs) const
 Multiply a matrix.
void SetScale (const Vector3 &scale)
 Set scaling elements.
void SetScale (float scale)
 Set uniform scaling elements.
Vector3 Scale () const
 Return the scaling part.
Matrix3 Transpose () const
 Return transpose.
Matrix3 Scaled (const Vector3 &scale) const
 Return scaled by a vector.
Matrix3 Inverse () const
 Return inverse.
const float * Data () const
 Return float data.

Static Public Member Functions

static void BulkTranspose (float *dest, const float *src, unsigned count)
 Bulk transpose matrices.

Public Attributes

float m00_
float m01_
float m02_
float m10_
float m11_
float m12_
float m20_
float m21_
float m22_

Static Public Attributes

static const Matrix3 ZERO
 Zero matrix.
static const Matrix3 IDENTITY
 Identity matrix.

Detailed Description

3x3 matrix for rotation and scaling.


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