Exemple #1
0
 /// <summary>
 /// Returns whether or not this box intersects another.</summary>
 public bool Intersects(Plane p)
 {
     return(Math.Intersects(p, this));
 }
Exemple #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));
 }
Exemple #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));
 }
Exemple #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));
 }