Exemple #1
0
 /// <summary>This method tests if this bounding box touches the <code>p</code> point.</summary>
 /// <param name="p">Point.</param>
 /// <param name="epsilon">Epsilon error.</param>
 /// <returns>true if the bounding box touch and the point touch.</returns>
 public bool Touch(Point2d p, double epsilon = MathUtils.EPSILON)
 {
     return(RangeUtils.TouchPoint(this.XMin, this.XMax, p.X, epsilon) ||
            RangeUtils.TouchPoint(this.YMin, this.YMax, p.Y, epsilon));
 }
Exemple #2
0
 /// <summary>This method tests if this bounding box touches the <code>p</code> point.</summary>
 /// <param name="p">Point.</param>
 /// <param name="epsilon">Epsilon error.</param>
 /// <returns>true if the bounding box touch and the point touch.</returns>
 public bool Touch(double p, double epsilon = MathUtils.EPSILON)
 {
     return(RangeUtils.TouchPoint(this.XMin, this.XMax, p, epsilon));
 }