Back to class index
| Ray::IntersectsSyntaxbool Ray::Intersects(const Triangle &triangle, float *d, float4 *intersectionPoint) const; [4 lines of code]bool Ray::Intersects(const Triangle &triangle) const; [8 lines of code] bool Ray::Intersects(const Plane &plane, float *d) const; [4 lines of code] bool Ray::Intersects(const Plane &plane) const; [4 lines of code] bool Ray::Intersects(const Sphere &s, float4 *intersectionPoint, float4 *intersectionNormal, float *d) const; [4 lines of code] bool Ray::Intersects(const Sphere &s) const; [4 lines of code] bool Ray::Intersects(const AABB &aabb, float &dNear, float &dFar) const; [4 lines of code] bool Ray::Intersects(const AABB &aabb) const; [4 lines of code] bool Ray::Intersects(const OBB &obb, float &dNear, float &dFar) const; [4 lines of code] bool Ray::Intersects(const OBB &obb) const; [4 lines of code] bool Ray::Intersects(const Capsule &capsule) const; [4 lines of code] bool Ray::Intersects(const Polygon &polygon) const; [4 lines of code] bool Ray::Intersects(const Frustum &frustum) const; [4 lines of code] bool Ray::Intersects(const Polyhedron &polyhedron) const; [4 lines of code] Tests whether this ray and the given object intersect. Both objects are treated as "solid", meaning that if one of the objects is fully contained inside another, this function still returns true. Parametersfloat *d [out]If specified, this parameter will receive the parametric distance of the intersection point along this object. Use the GetPoint(d) function to get the actual point of intersection. This pointer may be null.float4 *intersectionPoint [out]If specified, receives the actual point of intersection. This pointer may be null.float4 *intersectionNormal [out]If specified, receives the surface normal of the other object at the point of intersection. This pointer may be null.float &dNear [out]If specified, receives the distance along this ray to where the ray enters the bounding box.float &dFar [out]If specified, receives the distance along this ray to where the ray exits the bounding box. Return ValueTrue if an intersection occurs or one of the objects is contained inside the other, false otherwise. See Also |