コード例 #1
0
 /// <summary>
 /// Shortest distance from box to sphere
 /// </summary>
 public double DistanceTo(Box3d box)
 {
     return(box.DistanceTo(this));
 }
コード例 #2
0
ファイル: Segment3D.cs プロジェクト: KDSBest/GeometRi.CSharp
 /// <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));
 }