#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 | ( | ) |
References Unit().
Referenced by geoff_geometry::Kurve::OffsetMethod1(), and geoff_geometry::Kurve::Reduce().
◆ 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 |
References e, geoff_geometry::FAILURE(), GetScale(), m_mirrored, and m_unit.
◆ 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()
Matrix geoff_geometry::Matrix::Inverse | ( | ) |
References e, geoff_geometry::FAILURE(), and geoff_geometry::getMessage().
Referenced by geoff_geometry::Kurve::Add(), and geoff_geometry::Kurve::NearToVertex().
◆ 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 | ) |
Referenced by geoff_geometry::Kurve::Add(), Rotate(), and Scale().
◆ operator!=()
◆ operator==()
References e, geoff_geometry::FEQ(), m_unit, and geoff_geometry::TIGHT_TOLERANCE.
◆ 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 | ||
) |
References m_mirrored, m_unit, Multiply(), and DraftVecUtils::rotate().
◆ Rotate() [4/4]
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 DraftVecUtils::rotate().
Referenced by Rotate().
◆ Scale() [1/2]
void geoff_geometry::Matrix::Scale | ( | double | 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.
◆ Transform() [2/2]
void geoff_geometry::Matrix::Transform | ( | double | p0[3], |
double | p1[3] | ||
) | const |
◆ Transform2d()
void geoff_geometry::Matrix::Transform2d | ( | double | p0[2], |
double | p1[2] | ||
) | const |
◆ Translate()
void geoff_geometry::Matrix::Translate | ( | double | x, |
double | y, | ||
double | z = 0 |
||
) |
◆ 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
double geoff_geometry::Matrix::e[16] |
Referenced by Get(), GetRotation(), GetScale(), GetTranslate(), Inverse(), IsMirrored(), IsUnit(), geoff_geometry::Kurve::Kurve(), Matrix(), geoff_geometry::Plane::Mirrored(), Multiply(), geoff_geometry::Kurve::OffsetISOMethod(), geoff_geometry::Kurve::operator=(), operator==(), Put(), Scale(), Transform(), Transform2d(), Translate(), and Unit().
◆ m_mirrored
int geoff_geometry::Matrix::m_mirrored |
◆ m_unit
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(), Transform(), Transform2d(), Translate(), and Unit().
The documentation for this class was generated from the following files:
- src/Mod/Path/libarea/kurve/geometry.h
- src/Mod/Path/libarea/kurve/Matrix.cpp