Пример #1
0
 /// <summary>
 /// Shortest distance from box to sphere
 /// </summary>
 public double DistanceTo(Box3d box)
 {
     return(box.DistanceTo(this));
 }
Пример #2
0
 /// <summary>
 /// Get intersection of segment with box.
 /// Returns 'null' (no intersection) or object of type 'Point3d' or 'Segment3d'.
 /// </summary>
 public object IntersectionWith(Box3d b)
 {
     return(b.IntersectionWith(this));
 }
Пример #3
0
 /// <summary>
 /// Check intersection of triangle with box
 /// </summary>
 public bool Intersects(Box3d box)
 {
     return(box.Intersects(this));
 }