geoff_geometry::Matrix Class Reference

#include <geometry.h>

Public Member Functions

void Get (double *p) const
 
void GetRotation (double &ax, double &ay, double &az) const
 
bool GetScale (double &sx) const
 
void GetScale (double &sx, double &sy, double &sz) const
 
void GetTranslate (double &x, double &y, double &z) const
 
Matrix Inverse ()
 
int IsMirrored ()
 
int IsUnit ()
 
 Matrix ()
 
 Matrix (double m[16])
 
void Multiply (Matrix &m)
 
bool operator!= (const Matrix &m) const
 
bool operator== (const Matrix &m) const
 
void Put (double *p)
 
void Rotate (double angle, int Axis)
 
void Rotate (double angle, Vector3d *rotAxis)
 
void Rotate (double sinang, double cosang, int Axis)
 
void Rotate (double sinang, double cosang, Vector3d *rotAxis)
 
void Scale (double scale)
 
void Scale (double scalex, double scaley, double scalez)
 
void Transform (double p0[3]) const
 
void Transform (double p0[3], double p1[3]) const
 
void Transform2d (double p0[2], double p1[2]) const
 
void Translate (double x, double y, double z=0)
 
void Unit ()
 
 ~Matrix ()
 

Public Attributes

double e [16]
 
int m_mirrored
 
bool m_unit
 

Constructor & Destructor Documentation

◆ Matrix() [1/2]

geoff_geometry::Matrix::Matrix ( )

◆ Matrix() [2/2]

geoff_geometry::Matrix::Matrix ( double  m[16])

References e, IsMirrored(), and IsUnit().

◆ ~Matrix()

geoff_geometry::Matrix::~Matrix ( )

Member Function Documentation

◆ Get()

void geoff_geometry::Matrix::Get ( double *  p) const

References e.

◆ GetRotation()

void geoff_geometry::Matrix::GetRotation ( double &  ax,
double &  ay,
double &  az 
) const

◆ GetScale() [1/2]

bool geoff_geometry::Matrix::GetScale ( double &  sx) const

References GetScale(), and m_unit.

◆ GetScale() [2/2]

void geoff_geometry::Matrix::GetScale ( double &  sx,
double &  sy,
double &  sz 
) const

◆ GetTranslate()

void geoff_geometry::Matrix::GetTranslate ( double &  x,
double &  y,
double &  z 
) const

References e.

◆ Inverse()

◆ IsMirrored()

int geoff_geometry::Matrix::IsMirrored ( )

References e, m_mirrored, and m_unit.

Referenced by Matrix().

◆ IsUnit()

int geoff_geometry::Matrix::IsUnit ( )

References e, m_mirrored, and m_unit.

Referenced by Matrix(), and Multiply().

◆ Multiply()

void geoff_geometry::Matrix::Multiply ( Matrix m)

References e, and IsUnit().

Referenced by geoff_geometry::Kurve::Add(), Rotate(), and Scale().

◆ operator!=()

bool geoff_geometry::Matrix::operator!= ( const Matrix m) const

◆ operator==()

bool geoff_geometry::Matrix::operator== ( const Matrix m) const

◆ Put()

void geoff_geometry::Matrix::Put ( double *  p)

References e, m_mirrored, and m_unit.

◆ Rotate() [1/4]

void geoff_geometry::Matrix::Rotate ( double  angle,
int  Axis 
)

References Rotate().

◆ Rotate() [2/4]

void geoff_geometry::Matrix::Rotate ( double  angle,
Vector3d rotAxis 
)

Rotation about rotAxis with angle

References Rotate().

◆ Rotate() [3/4]

void geoff_geometry::Matrix::Rotate ( double  sinang,
double  cosang,
int  Axis 
)

◆ Rotate() [4/4]

void geoff_geometry::Matrix::Rotate ( double  sinang,
double  cosang,
Vector3d rotAxis 
)

◆ Scale() [1/2]

void geoff_geometry::Matrix::Scale ( double  scale)

References Scale().

Referenced by Scale().

◆ Scale() [2/2]

void geoff_geometry::Matrix::Scale ( double  scalex,
double  scaley,
double  scalez 
)

References e, m_mirrored, m_unit, Multiply(), and Unit().

◆ Transform() [1/2]

void geoff_geometry::Matrix::Transform ( double  p0[3]) const

References m_unit, and Transform().

Referenced by Transform().

◆ Transform() [2/2]

void geoff_geometry::Matrix::Transform ( double  p0[3],
double  p1[3] 
) const

References e, and m_unit.

◆ Transform2d()

void geoff_geometry::Matrix::Transform2d ( double  p0[2],
double  p1[2] 
) const

References e, and m_unit.

◆ Translate()

void geoff_geometry::Matrix::Translate ( double  x,
double  y,
double  z = 0 
)

References e, and m_unit.

◆ Unit()

void geoff_geometry::Matrix::Unit ( )

References e, m_mirrored, and m_unit.

Referenced by Matrix(), geoff_geometry::Plane::Mirrored(), and Scale().

Member Data Documentation

◆ e

◆ m_mirrored

◆ m_unit


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