#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 |
geoff_geometry::Matrix::Matrix | ( | ) |
References Unit().
Referenced by geoff_geometry::Kurve::OffsetMethod1(), and geoff_geometry::Kurve::Reduce().
geoff_geometry::Matrix::Matrix | ( | double | m[16] | ) |
References e, IsMirrored(), and IsUnit().
geoff_geometry::Matrix::~Matrix | ( | ) |
void geoff_geometry::Matrix::Get | ( | double * | p | ) | const |
References e.
void geoff_geometry::Matrix::GetRotation | ( | double & | ax, |
double & | ay, | ||
double & | az | ||
) | const |
References e, geoff_geometry::FAILURE(), GetScale(), m_mirrored, and m_unit.
bool geoff_geometry::Matrix::GetScale | ( | double & | sx | ) | const |
References GetScale(), and m_unit.
void geoff_geometry::Matrix::GetScale | ( | double & | sx, |
double & | sy, | ||
double & | sz | ||
) | const |
void geoff_geometry::Matrix::GetTranslate | ( | double & | x, |
double & | y, | ||
double & | z | ||
) | const |
References e.
Matrix geoff_geometry::Matrix::Inverse | ( | ) |
References geoff_geometry::FAILURE(), and geoff_geometry::getMessage().
Referenced by geoff_geometry::Kurve::Add(), and geoff_geometry::Kurve::NearToVertex().
int geoff_geometry::Matrix::IsMirrored | ( | ) |
References e, m_mirrored, and m_unit.
Referenced by Matrix().
int geoff_geometry::Matrix::IsUnit | ( | ) |
References e, m_mirrored, and m_unit.
Referenced by Matrix(), and Multiply().
void geoff_geometry::Matrix::Multiply | ( | Matrix & | m | ) |
Referenced by geoff_geometry::Kurve::Add(), Rotate(), and Scale().
References e, geoff_geometry::FEQ(), m_unit, and geoff_geometry::TIGHT_TOLERANCE.
void geoff_geometry::Matrix::Put | ( | double * | p | ) |
References e, m_mirrored, and m_unit.
void geoff_geometry::Matrix::Rotate | ( | double | angle, |
Vector3d * | rotAxis | ||
) |
Rotation about rotAxis with angle
References Rotate().
void geoff_geometry::Matrix::Rotate | ( | double | sinang, |
double | cosang, | ||
int | Axis | ||
) |
References m_mirrored, m_unit, Multiply(), and draftfunctions.rotate::rotate().
void geoff_geometry::Matrix::Rotate | ( | double | sinang, |
double | cosang, | ||
Vector3d * | rotAxis | ||
) |
Rotation about rotAxis with cp & dp
References geoff_geometry::Vector3d::getx(), geoff_geometry::Vector3d::gety(), geoff_geometry::Vector3d::getz(), m_mirrored, m_unit, Multiply(), and draftfunctions.rotate::rotate().
Referenced by Rotate().
void geoff_geometry::Matrix::Scale | ( | double | scalex, |
double | scaley, | ||
double | scalez | ||
) |
References e, m_mirrored, m_unit, Multiply(), and Unit().
void geoff_geometry::Matrix::Transform | ( | double | p0[3] | ) | const |
References m_unit, and Transform().
Referenced by Transform().
void geoff_geometry::Matrix::Transform | ( | double | p0[3], |
double | p1[3] | ||
) | const |
void geoff_geometry::Matrix::Transform2d | ( | double | p0[2], |
double | p1[2] | ||
) | const |
void geoff_geometry::Matrix::Translate | ( | double | x, |
double | y, | ||
double | z = 0 |
||
) |
void geoff_geometry::Matrix::Unit | ( | ) |
References e, m_mirrored, and m_unit.
Referenced by Matrix(), geoff_geometry::Plane::Mirrored(), and Scale().
double geoff_geometry::Matrix::e[16] |
Referenced by Get(), GetRotation(), GetScale(), GetTranslate(), IsMirrored(), IsUnit(), geoff_geometry::Kurve::Kurve(), Matrix(), geoff_geometry::Plane::Mirrored(), Multiply(), geoff_geometry::Kurve::operator=(), operator==(), Put(), Scale(), geoff_geometry::Kurve::SetZ(), Transform(), Transform2d(), Translate(), and Unit().
int geoff_geometry::Matrix::m_mirrored |
bool geoff_geometry::Matrix::m_unit |
Referenced by geoff_geometry::Kurve::Add(), geoff_geometry::Kurve::Get(), GetRotation(), GetScale(), IsMirrored(), IsUnit(), geoff_geometry::Kurve::Kurve(), geoff_geometry::Plane::Mirrored(), geoff_geometry::Kurve::NearToVertex(), geoff_geometry::Kurve::operator=(), operator==(), Put(), Rotate(), Scale(), geoff_geometry::Kurve::SetZ(), Transform(), Transform2d(), Translate(), and Unit().