Class MATH contains mathematic functions and constants More...
Public Member Functions | |
bool | LineIntersection (object A1, object A2, object B1, object B2, out object Intersection) |
Calculates intersection of two lines More... | |
double | GetAreaOfPolygon (IList Points) |
Calculates area of non-self-intersecting closed polygon More... | |
PointD | GetCenterOfGravityOfPolygon (IList Points) |
Get center of gravity of the non-self-intersecting closed polygon More... | |
TStructure | GetMOIOfPolygon (IList Points) |
Calculates main moments of innertia (Iy, Iz, Iyz) of the non-self-intersecting closed polygon. Moments are relative to the horizontal (Y) and vertical (Z) axis, with origin in center of gravity More... | |
TStructure | GetMOIOfPolygon (IList Points, double Origin_Y, double Origin_Z) |
Calculates main moments of innertia (Iy, Iz, Iyz) of the non-self-intersecting closed polygon. Moments are relative to the horizontal (Y) and vertical (Z) axis, with origin in given coordinates More... | |
List< object > | GetPolynomRoots (IList Coefficients) |
Calculate real roots of given polynomial More... | |
List< Complex > | GetPolynomComplexRoots (IList Coefficients) |
Calculate complex roots of given polynomial More... | |
List< object > | GetPolynomRoots0 (IList Coefficients) |
Calculate real roots of given polynomial More... | |
List< Complex > | GetPolynomComplexRoots0 (IList Coefficients) |
Calculate complex roots of given polynomial More... | |
List< object > | GetPolynomRoots (double X0, double X1, double X2, double X3, double X4, double X5, double X6) |
Calculate real roots of given polynomial More... | |
List< Complex > | GetPolynomComplexRoots (double X0, double X1, double X2, double X3, double X4, double X5, double X6) |
Calculate complext roots of given polynomial More... | |
TStructure | SolveQuadraticEquation (double A, double B, double C) |
Solve quadratic equation More... | |
TStructure | SolveCubicEquation (double A, double B, double C, double D) |
Solve cubic equation More... | |
TMatrix | GetTransformationMatrix3D (TVector3D Axis, double Angle) |
TMatrix | GetIsometryMatrix3D (double Alpha, double Beta) |
Return isometry transformation matrix More... | |
double | Dist (double X1, double Y1, double X2, double Y2) |
Calculate distance of two 2D points More... | |
double | Dist (object P1, object P2) |
Calculate distance of two 2D points More... | |
Public Attributes | |
double | PI = Math.PI |
π = 3.14159265359 More... | |
double | E = Math.E |
Euler's constant e = 2.71828182846 More... | |
double | NaN = double.NaN |
NotAnyNumber More... | |
Class MATH contains mathematic functions and constants
double Dist | ( | double | X1, |
double | Y1, | ||
double | X2, | ||
double | Y2 | ||
) |
Calculate distance of two 2D points
X1 | X coordinate of first point |
Y1 | Y coordinate of first point |
X2 | X coordinate of second point |
Y2 | Y coordinate of second point |
double Dist | ( | object | P1, |
object | P2 | ||
) |
Calculate distance of two 2D points
P1 | First point |
P2 | Second point |
double GetAreaOfPolygon | ( | IList | Points | ) |
Calculates area of non-self-intersecting closed polygon
Points | Points defining non-self-intersecting closed polygon |
PointD GetCenterOfGravityOfPolygon | ( | IList | Points | ) |
Get center of gravity of the non-self-intersecting closed polygon
Points | Points defining non-self-intersecting closed polygon |
TMatrix GetIsometryMatrix3D | ( | double | Alpha, |
double | Beta | ||
) |
Return isometry transformation matrix
Alpha | Rotation around X-axis |
Beta | Rotation around Y-axis |
TStructure GetMOIOfPolygon | ( | IList | Points | ) |
Calculates main moments of innertia (Iy, Iz, Iyz) of the non-self-intersecting closed polygon. Moments are relative to the horizontal (Y) and vertical (Z) axis, with origin in center of gravity
Points | Points defining non-self-intersecting closed polygon |
TStructure GetMOIOfPolygon | ( | IList | Points, |
double | Origin_Y, | ||
double | Origin_Z | ||
) |
Calculates main moments of innertia (Iy, Iz, Iyz) of the non-self-intersecting closed polygon. Moments are relative to the horizontal (Y) and vertical (Z) axis, with origin in given coordinates
Points | Points defining non-self-intersecting closed polygon |
Origin_Y | Y-coordinate of the origin of coordination system |
Origin_Z | Z-coordinate of the origin of coordination system |
List<Complex> GetPolynomComplexRoots | ( | IList | Coefficients | ) |
Calculate complex roots of given polynomial
Coefficients | List of polynom coefficients sorted from highest grade to the lowest (Xn, ... X2, X1, X0) |
List<Complex> GetPolynomComplexRoots | ( | double | X0, |
double | X1, | ||
double | X2, | ||
double | X3, | ||
double | X4, | ||
double | X5, | ||
double | X6 | ||
) |
Calculate complext roots of given polynomial
X0 | Coefficient of X^0 |
X1 | Coefficient of X^1 |
X2 | Coefficient of X^2 |
X3 | Coefficient of X^3 |
X4 | Coefficient of X^4 |
X5 | Coefficient of X^5 |
X6 | Coefficient of X^6 |
List<Complex> GetPolynomComplexRoots0 | ( | IList | Coefficients | ) |
Calculate complex roots of given polynomial
Coefficients | List of polynom coefficients sorted from 0 to N (X0, X1, X2 ... Xn) |
List<object> GetPolynomRoots | ( | IList | Coefficients | ) |
Calculate real roots of given polynomial
Coefficients | List of polynom coefficients sorted from highest grade to the lowest (Xn, ... X2, X1, X0) |
List<object> GetPolynomRoots | ( | double | X0, |
double | X1, | ||
double | X2, | ||
double | X3, | ||
double | X4, | ||
double | X5, | ||
double | X6 | ||
) |
Calculate real roots of given polynomial
X0 | Coefficient of X^0 |
X1 | Coefficient of X^1 |
X2 | Coefficient of X^2 |
X3 | Coefficient of X^3 |
X4 | Coefficient of X^4 |
X5 | Coefficient of X^5 |
X6 | Coefficient of X^6 |
List<object> GetPolynomRoots0 | ( | IList | Coefficients | ) |
Calculate real roots of given polynomial
Coefficients | List of polynom coefficients sorted from 0 to N (X0, X1, X2 ... Xn) |
bool LineIntersection | ( | object | A1, |
object | A2, | ||
object | B1, | ||
object | B2, | ||
out object | Intersection | ||
) |
Calculates intersection of two lines
A1 | First point of the first line |
A2 | Second point of the first line |
B1 | First point of the second line |
B2 | Second point of the second line |
Intersection | Out parameter - intersection point |
TStructure SolveCubicEquation | ( | double | A, |
double | B, | ||
double | C, | ||
double | D | ||
) |
Solve cubic equation
A | Coefficient of X3 |
B | Coefficient of X2 |
C | Coefficient of X1 |
D | Coefficient of X0 |
TStructure SolveQuadraticEquation | ( | double | A, |
double | B, | ||
double | C | ||
) |
Solve quadratic equation
A | Coefficient of X2 |
B | Coefficient of X1 |
C | Coefficient of X0 |
double E = Math.E |
Euler's constant e = 2.71828182846
double NaN = double.NaN |
NotAnyNumber
double PI = Math.PI |
π = 3.14159265359