public float Intersects(BoundingPolygon polygon) { float result; polygon.Intersects(ref this, out result); return(result); }
public bool Intersects(BoundingPolygon polygon) { bool result; polygon.Intersects(ref this, out result); return(result); }
// Duplicates with BoundingCircle. public void Contains(ref BoundingPolygon polygon, out Containment result) { var vertices = polygon.Vertices; result = Containment.Unknown; for (var index = 0; index < vertices.Length && result != Containment.Intersects; ++index) { Containment con; Contains(ref vertices[index], out con); result |= con; } if (result == Containment.Disjoint) { bool test; polygon.Intersects(ref this, out test); if (test) { result = Containment.Intersects; } } }
public void Intersects(ref BoundingPolygon polygon, out float result) { polygon.Intersects(ref this, out result); }