MeshKit
1.0
|
Functions | |
template<class T > | |
T | random_value (T minval, T maxval) |
template<> | |
int | random_value (int minval, int maxval) |
template<> | |
size_t | random_value (size_t minval, size_t maxval) |
template<> | |
double | random_value (double minval, double maxval) |
template<> | |
float | random_value (float minval, float maxval) |
void | create_vector (const Point3D &head, const Point3D &tail, Vec3D &xyz) |
double | length (const Point3D &A, const Point3D &B) |
double | length2 (const Point3D &A, const Point3D &B) |
double | magnitude (const Vec3D &A) |
double | dot_product (const Vec3D &A, const Vec3D &B) |
void | cross_product (const Vec3D &A, const Vec3D &B, Vec3D &C) |
double | poly_area (const vector< Point2D > &p) |
void | poly_centroid (const vector< Point2D > &p, Point2D &c) |
void | normal (const Point3D &p0, const Point3D &p1, const Point3D &p2, Vec3D &normal) |
Vec3D | unit_vector (const Point3D &head, const Point3D &tail) |
double | getVectorAngle (const Vec3D &A, const Vec3D &B, int measure) |
template<class T > | |
T | max_value (const T &a, const T &b, const T &c) |
template<class T > | |
T | min_value (const T &a, const T &b, const T &c) |
template<class T , size_t n> | |
double | getAngle (const Array< T, n > &VecA, const Array< T, n > &VecB, int unit_measure) |
template<class T , size_t n> | |
T | getAngle (const Array< T, n > &pa, const Array< T, n > &pb, const Array< T, n > &pc, int unit_measure=0) |
double | getTriAngle (const Point3D &pa, const Point3D &pb, const Point3D &pc) |
void | getTriAngles (const Point3D &pa, const Point3D &pb, const Point3D &pc, Point3D &angles) |
void Math::create_vector | ( | const Point3D & | head, |
const Point3D & | tail, | ||
Vec3D & | xyz | ||
) | [inline] |
Definition at line 68 of file basic_math.hpp.
void Math::cross_product | ( | const Vec3D & | A, |
const Vec3D & | B, | ||
Vec3D & | C | ||
) | [inline] |
Definition at line 101 of file basic_math.hpp.
double Math::dot_product | ( | const Vec3D & | A, |
const Vec3D & | B | ||
) | [inline] |
Definition at line 96 of file basic_math.hpp.
double Math::getAngle | ( | const Array< T, n > & | VecA, |
const Array< T, n > & | VecB, | ||
int | unit_measure | ||
) | [inline] |
Definition at line 209 of file basic_math.hpp.
T Math::getAngle | ( | const Array< T, n > & | pa, |
const Array< T, n > & | pb, | ||
const Array< T, n > & | pc, | ||
int | unit_measure = 0 |
||
) | [inline] |
Definition at line 238 of file basic_math.hpp.
double Math::getTriAngle | ( | const Point3D & | pa, |
const Point3D & | pb, | ||
const Point3D & | pc | ||
) | [inline] |
Definition at line 248 of file basic_math.hpp.
void Math::getTriAngles | ( | const Point3D & | pa, |
const Point3D & | pb, | ||
const Point3D & | pc, | ||
Point3D & | angles | ||
) | [inline] |
Definition at line 262 of file basic_math.hpp.
double Math::getVectorAngle | ( | const Vec3D & | A, |
const Vec3D & | B, | ||
int | measure | ||
) | [inline] |
Definition at line 177 of file basic_math.hpp.
double Math::length | ( | const Point3D & | A, |
const Point3D & | B | ||
) | [inline] |
Definition at line 75 of file basic_math.hpp.
double Math::length2 | ( | const Point3D & | A, |
const Point3D & | B | ||
) | [inline] |
Definition at line 83 of file basic_math.hpp.
double Math::magnitude | ( | const Vec3D & | A | ) | [inline] |
Definition at line 91 of file basic_math.hpp.
T Math::max_value | ( | const T & | a, |
const T & | b, | ||
const T & | c | ||
) | [inline] |
Definition at line 197 of file basic_math.hpp.
T Math::min_value | ( | const T & | a, |
const T & | b, | ||
const T & | c | ||
) | [inline] |
Definition at line 203 of file basic_math.hpp.
void Math::normal | ( | const Point3D & | p0, |
const Point3D & | p1, | ||
const Point3D & | p2, | ||
Vec3D & | normal | ||
) | [inline] |
Definition at line 148 of file basic_math.hpp.
double Math::poly_area | ( | const vector< Point2D > & | p | ) | [inline] |
Definition at line 108 of file basic_math.hpp.
void Math::poly_centroid | ( | const vector< Point2D > & | p, |
Point2D & | c | ||
) | [inline] |
Definition at line 121 of file basic_math.hpp.
T Math::random_value | ( | T | minval, |
T | maxval | ||
) |
Definition at line 40 of file basic_math.hpp.
int Math::random_value | ( | int | minval, |
int | maxval | ||
) | [inline] |
Definition at line 45 of file basic_math.hpp.
size_t Math::random_value | ( | size_t | minval, |
size_t | maxval | ||
) | [inline] |
Definition at line 51 of file basic_math.hpp.
double Math::random_value | ( | double | minval, |
double | maxval | ||
) | [inline] |
Definition at line 57 of file basic_math.hpp.
float Math::random_value | ( | float | minval, |
float | maxval | ||
) | [inline] |
Definition at line 63 of file basic_math.hpp.
Vec3D Math::unit_vector | ( | const Point3D & | head, |
const Point3D & | tail | ||
) | [inline] |
Definition at line 162 of file basic_math.hpp.