#include <vector>#include <algorithm>Go to the source code of this file.
Namespaces | |
| namespace | ttl_util |
Utilities. | |
Functions | |
Computational geometry | |
| template<class real_type > | |
| real_type | ttl_util::scalarProduct2d (real_type dx1, real_type dy1, real_type dx2, real_type dy2) |
| Scalar product between two 2D vectors. | |
| template<class real_type > | |
| real_type | ttl_util::crossProduct2d (real_type dx1, real_type dy1, real_type dx2, real_type dy2) |
| Cross product between two 2D vectors. | |
| template<class real_type > | |
| real_type | ttl_util::orient2dfast (real_type pa[2], real_type pb[2], real_type pc[2]) |
| Returns a positive value if the 2D nodes/points pa, pb, and pc occur in counterclockwise order; a negative value if they occur in clockwise order; and zero if they are collinear. | |
Utilities involving points | |
| template<class PointType > | |
| vector< PointType * > * | ttl_util::createRandomData (int noPoints, int seed=1) |
| Creates random data on the unit square. | |
1.6.1