Ejemplo n.º 1
0
 /// <summary>
 /// Returns the points's position relative to the plane itself (i.e Front/Back/On)
 /// </summary>
 /// <param name="p">A point in 3D space.</param>
 /// <param name="tolerance">The tolerance value to use.</param>
 /// <returns>A <see cref="MathFunctions.Sign"/>.</returns>
 /// <remarks>
 /// If the point's distance from the plane is withon the [-tolerance, tolerance] range, the point is considered to be on the plane.
 /// </remarks>
 public MathFunctions.Sign GetSign(Vector3F p, float tolerance)
 {
     return(MathFunctions.GetSign(DistanceMethods.Distance(p, this), tolerance));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the points's position relative to the plane itself (i.e Front/Back/On)
 /// </summary>
 /// <param name="p">A point in 3D space.</param>
 /// <returns>A <see cref="MathFunctions.Sign"/>.</returns>
 public MathFunctions.Sign GetSign(Vector3F p)
 {
     return(MathFunctions.GetSign(DistanceMethods.Distance(p, this)));
 }