LibreCAD
|
#include <equation.h>
Public Member Functions | |
Equation () | |
Equation & | operator= (const Equation qm) |
Equation (Eigen::Matrix3d &mat) | |
Equation (double a, double b, double c, double d, double e, double f) | |
creates a new quadratic Equation More... | |
Equation (const std::vector< double > &vec) | |
creates a new equation with values in vector More... | |
const std::vector< double > | Coefficients () const |
Coefficients of the equation. More... | |
const Equation | move (const geo::Coordinate &v) const |
move the quadratic equation by value V More... | |
const Equation | rotate (double angle) const |
rotate the quadratic equation by value V More... | |
const Equation | rotate (const geo::Coordinate ¢er, double angle) const |
rotate the quadratic equation by value V at specific center. More... | |
const Eigen::Matrix3d | Matrix () const |
Matrix Returns matrix of equation. More... | |
const Equation | flipXY () const |
flipXY Flips the matrix values More... | |
Static Public Member Functions | |
static Eigen::Matrix3d | rotationMatrix (double angle) |
rotationMatrix Rotates the matrix by an angle More... | |
static Eigen::Matrix3d | translateMatrix (const geo::Coordinate &v) |
translateMatrix Translates the matrix by some coordinate value More... | |
Private Attributes | |
Eigen::Matrix3d | matrix_ |
Definition at line 14 of file equation.h.
Equation::Equation | ( | ) |
Definition at line 10 of file equation.cpp.
Equation::Equation | ( | Eigen::Matrix3d & | mat | ) |
Definition at line 14 of file equation.cpp.
Equation::Equation | ( | double | a, |
double | b, | ||
double | c, | ||
double | d, | ||
double | e, | ||
double | f | ||
) |
creates a new quadratic Equation
a | X^2 double value |
b | Y^2 double value |
c | XY double value |
d | X double value |
e | Y double value |
f | constant double |
Definition at line 23 of file equation.cpp.
Equation::Equation | ( | const std::vector< double > & | vec | ) |
creates a new equation with values in vector
vec | vector of quadratic equation |
Definition at line 32 of file equation.cpp.
const std::vector< double > Equation::Coefficients | ( | ) | const |
Coefficients of the equation.
Definition at line 40 of file equation.cpp.
const Equation Equation::flipXY | ( | ) | const |
flipXY Flips the matrix values
Definition at line 88 of file equation.cpp.
const Eigen::Matrix3d Equation::Matrix | ( | ) | const |
Matrix Returns matrix of equation.
Definition at line 76 of file equation.cpp.
const Equation Equation::move | ( | const geo::Coordinate & | v | ) | const |
move the quadratic equation by value V
v | the coordinate value to move equation by. |
Definition at line 48 of file equation.cpp.
Definition at line 18 of file equation.cpp.
const Equation Equation::rotate | ( | double | angle | ) | const |
rotate the quadratic equation by value V
v | the angle value to rotate equation by. |
Definition at line 54 of file equation.cpp.
const Equation Equation::rotate | ( | const geo::Coordinate & | center, |
double | angle | ||
) | const |
rotate the quadratic equation by value V at specific center.
v | the angle value to rotate equation by. |
Definition at line 61 of file equation.cpp.
|
static |
rotationMatrix Rotates the matrix by an angle
angle |
Definition at line 68 of file equation.cpp.
|
static |
translateMatrix Translates the matrix by some coordinate value
v | offset coordinate value |
Definition at line 80 of file equation.cpp.
|
private |
Definition at line 95 of file equation.h.