Functions | |
template<typename T> | |
T | geom::computeOrientationDeterminant (const ads::FixedArray< 2, T > &a, const ads::FixedArray< 2, T > &b, const ads::FixedArray< 2, T > &c) |
Compute the orientation determinant. | |
template<typename T> | |
T | geom::computeInCircleDeterminant (const ads::FixedArray< 2, T > &a, const ads::FixedArray< 2, T > &b, const ads::FixedArray< 2, T > &c, const ads::FixedArray< 2, T > &d) |
Compute the in-circle determinant. | |
template<typename T> | |
bool | geom::isInCircle (const ads::FixedArray< 2, T > &a, const ads::FixedArray< 2, T > &b, const ads::FixedArray< 2, T > &c, const ads::FixedArray< 2, T > &d) |
Return true if d is inside the circle with a , b , and c on its boundary. |
T geom::computeInCircleDeterminant | ( | const ads::FixedArray< 2, T > & | a, | |
const ads::FixedArray< 2, T > & | b, | |||
const ads::FixedArray< 2, T > & | c, | |||
const ads::FixedArray< 2, T > & | d | |||
) |
Compute the in-circle determinant.
Return the determinant of:
where . Point
d
lies inside the circle passing through a
, b
, and c
if and only if .
See Geometry and Topology for Mesh Generation.
T geom::computeOrientationDeterminant | ( | const ads::FixedArray< 2, T > & | a, | |
const ads::FixedArray< 2, T > & | b, | |||
const ads::FixedArray< 2, T > & | c | |||
) |
Compute the orientation determinant.
Return the determinant of:
It is positive for a left turn, negative for a right turn, and zero if the points are colinear.
See Geometry and Topology for Mesh Generation.
bool geom::isInCircle | ( | const ads::FixedArray< 2, T > & | a, | |
const ads::FixedArray< 2, T > & | b, | |||
const ads::FixedArray< 2, T > & | c, | |||
const ads::FixedArray< 2, T > & | d | |||
) | [inline] |
Return true if d
is inside the circle with a
, b
, and c
on its boundary.
Point d
lies inside the circle passing through a
, b
, and c
if and only if .
See Geometry and Topology for Mesh Generation.