Exemplo n.º 1
0
 /// <summary>
 /// Returns true if the ray hits the quad before the parameter
 /// value contained in the supplied hit. Detailed information about
 /// the hit is returned in the supplied hit. In order to obtain all
 /// potential hits, the supplied hit can be initialized with
 /// RayHit3d.MaxRange.
 /// </summary>
 public bool Hits(
     Quad3d quad, ref RayHit3d hit
     )
 {
     return(HitsQuad(quad.P0, quad.P1, quad.P2, quad.P3,
                     double.MinValue, double.MaxValue, ref hit));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns true if the ray hits the quad within the supplied
 /// parameter interval and before the parameter value contained
 /// in the supplied hit. Detailed information about the hit is
 /// returned in the supplied hit. In order to obtain all potential
 /// hits, the supplied hit can be initialized with RayHit3d.MaxRange.
 /// </summary>
 public bool Hits(
     Quad3d quad,
     double tmin, double tmax,
     ref RayHit3d hit
     )
 {
     return(HitsQuad(quad.P0, quad.P1, quad.P2, quad.P3,
                     tmin, tmax, ref hit));
 }