コード例 #1
0
ファイル: AxisAlignedBox.cs プロジェクト: aronarts/mogre
 /// <summary>
 /// Returns whether or not this box intersects another.</summary>
 public bool Intersects(Plane p)
 {
     return(Math.Intersects(p, this));
 }
コード例 #2
0
 /// <summary>Tests whether this ray intersects the given plane. A pair structure where the first element indicates whether an intersection occurs, and if true, the second element will indicate the distance along the ray at which it intersects. This can be converted to a point in space by calling getPoint(). </summary>
 public Tuple <bool, float> Intersects(Sphere s)
 {
     return(Math.Intersects(this, s));
 }
コード例 #3
0
 /// <summary>Tests whether this ray intersects the given plane. A pair structure where the first element indicates whether an intersection occurs, and if true, the second element will indicate the distance along the ray at which it intersects. This can be converted to a point in space by calling getPoint(). </summary>
 public Tuple <bool, float> Intersects(Plane p)
 {
     return(Math.Intersects(this, p));
 }
コード例 #4
0
 /// <summary>Tests whether this ray intersects the given plane. A pair structure where the first element indicates whether an intersection occurs, and if true, the second element will indicate the distance along the ray at which it intersects. This can be converted to a point in space by calling getPoint(). </summary>
 public Tuple <bool, float> Intersects(AxisAlignedBox box)
 {
     return(Math.Intersects(this, box));
 }