namespace MIConvexHull
{
internal static class Constants
{
internal const double epsilon = 1e-8;
internal const double epsilonSquared = 1e-16;
///
/// Checks whether to points are essentially the same position.
///
/// The PT1.
/// The PT2.
/// The dimension.
///
public static bool SamePosition(double[] pt1, double[] pt2, int dimension)
{
return (StarMath.norm2(StarMath.subtract(pt1, pt2, dimension), dimension, true) < epsilonSquared);
}
}
}