LibreCAD
|
#include <lcmath.h>
Static Public Member Functions | |
static bool | isAngleBetween (double a, double start, double end, bool CCW) |
isAngleBetween, checks if angle is between More... | |
static double | correctAngle (double a) |
correctAngle, Corrects angle to be in -PI to PI More... | |
static double | getAngleDifferenceShort (double a1, double a2, bool CCW) |
getAngleDifference, Angle difference between 2 angles More... | |
static double | getAngleDifference (double a1, double a2, bool CCW) |
getAngleDifference, Angle difference between 2 angles More... | |
static std::vector< double > | quadraticSolver (const std::vector< double > &ce) |
quadraticSolver, Quadratic equations solver More... | |
static std::vector< double > | cubicSolver (const std::vector< double > &ce) |
static std::vector< double > | quarticSolver (const std::vector< double > &ce) |
static std::vector< double > | sexticSolver (const std::vector< double > &ce) |
static std::vector< double > | quarticSolverFull (const std::vector< double > &ce) |
static std::vector < lc::geo::Coordinate > | simultaneousQuadraticSolver (const std::vector< double > &m) |
static bool | simultaneousQuadraticVerify (const std::vector< std::vector< double > > &m, const geo::Coordinate &v) |
static std::vector < lc::geo::Coordinate > | simultaneousQuadraticSolverFull (const std::vector< std::vector< double > > &m) |
simultaneousQuadraticSolverFull More... | |
static std::vector < lc::geo::Coordinate > | simultaneousQuadraticSolverMixed (const std::vector< std::vector< double > > &m) |
|
static |
correctAngle, Corrects angle to be in -PI to PI
double | a, angle |
Corrects the given angle to the range of -PI to PI
Definition at line 33 of file lcmath.cpp.
|
static |
cubic solver x^3 + ce[0] x^2 + ce[1] x + ce[2] = 0 , a vector of size 3 contains the coefficient in order
Definition at line 102 of file lcmath.cpp.
|
static |
getAngleDifference, Angle difference between 2 angles
double | a1, angle 1 |
double | a2, angle 2 |
bool,CCW | Counter Clickwise Check |
Definition at line 54 of file lcmath.cpp.
|
static |
getAngleDifference, Angle difference between 2 angles
double | a1, angle 1 |
double | a2, angle 2 |
bool,CCW | Counter Clickwise Check |
Definition at line 41 of file lcmath.cpp.
|
static |
isAngleBetween, checks if angle is between
a,angle | |
a1,angle1 | |
a2,angle2 | |
bool,CCW | Counter Clickwise Check |
Tests if angle a is between a1 and a2. a, a1 and a2 must be in the range between -PI and PI. All angles in rad.
reversed | true for clockwise testing. false for ccw testing. |
Definition at line 21 of file lcmath.cpp.
|
static |
quadraticSolver, Quadratic equations solver
vector<double> | ce, equation |
quadratic solver x^2 + ce[0] x + ce[1] = 0 , a vector of size 2 contains the coefficient in order
Definition at line 77 of file lcmath.cpp.
|
static |
quartic solver x^4 + ce[0] x^3 + ce[1] x^2 + ce[2] x + ce[3] = 0 , a vector of size 4 contains the coefficient in order
Definition at line 127 of file lcmath.cpp.
|
static |
quartic solver ce[4] x^4 + ce[3] x^3 + ce[2] x^2 + ce[1] x + ce[0] = 0 , a vector of size 5 contains the coefficient in order
Definition at line 183 of file lcmath.cpp.
|
static |
quartic solver ce[4] x^4 + ce[3] x^3 + ce[2] x^2 + ce[1] x + ce[0] = 0 , a vector of size 5 contains the coefficient in order
Definition at line 151 of file lcmath.cpp.
|
static |
solver quadratic simultaneous equations of a set of two
solver quadratic simultaneous equations of set two
Definition at line 245 of file lcmath.cpp.
|
static |
simultaneousQuadraticSolverFull
vector<vector | <double> > m |
solver quadratic simultaneous equations of a set of two
eliminate x, quartic equation of y
Collect[Eliminate[{ a*x^2 + b*x*y+c*y^2+d*x+e*y+f==0,g*x^2+h*x*y+i*y^2+j*x+k*y+l==0},x],y]
Definition at line 283 of file lcmath.cpp.
|
static |
y (2 b c d-a c e)-a c g+c^2 d = y^2 (a^2 (-f)+a b e-b^2 d)+y (a b g-a^2 h)+a^2 (-i)
Definition at line 414 of file lcmath.cpp.
|
static |
solver quadratic simultaneous equations of a set of two
verify a solution for simultaneousQuadratic the coefficient matrix , a candidate to verify
tolerance test for bug#3606099 verifying the equations to floating point tolerance by terms
Definition at line 484 of file lcmath.cpp.