namespace Calc
Defined in:
The C4Computation.h
Calc
namespace contains miscellaneous mathematical functions.
Definition
namespace C4 { namespace Calc {...} }
Member Functions
Calc::DistancePointToLine |
Calculates the distance from a point to a line. |
Calc::SquaredDistancePointToLine |
Calculates the squared distance from a point to a line. |
Calc::DistanceLineToLine |
Calculates the distance between two lines. |
Calc::SquaredDistanceLineToLine |
Calculates the squared distance between two lines. |
Calc::ClipSegment |
Clips a line segment against a plane. |
Calc::GetPolygonArea |
Returns the signed area of a polygon. |
Calc::ConvexPolygon |
Returns a boolean value indicating whether a given polygon is convex. |
Calc::PointInConvexPolygon |
Returns a value indicating whether a point lies within the interior of a convex polygon, lies on its boundary, or lies outside the polygon. |
Calc::ClipPolygon |
Clips a convex polygon against a plane. |
Calc::TriangulatePolygon |
Triangulates a convex or concave polygon having genus zero (i.e., no holes). |
Calc::TriangulatePolygonalComplex |
Triangulates a convex or concave polygon having nonzero genus. |
Random::RandomInteger |
Returns a random integer number. |
Random::RandomFloat |
Returns a random floating-point number. |
Random::RandomUnitVector2D |
Returns a random unit-length 2D vector. |
Random::RandomUnitVector3D |
Returns a random unit-length 3D vector. |
Random::RandomUnitQuaternion |
Returns a random unit-length quaternion. |
Random::RandomPointInsideDisk |
Returns a random point inside a circular disk. |
Random::RandomPointInsideSphere |
Returns a random point inside a circular sphere. |