Back to class index
| Ray::ContainsSyntaxbool Ray::Contains(const float4 &point, float distanceThreshold=1e-3f) const; [4 lines of code]bool Ray::Contains(const LineSegment &lineSegment, float distanceThreshold=1e-3f) const; [4 lines of code] Tests if the given object is fully contained on this ray. ParametersfloatdistanceThresholdThe magnitude of the epsilon test threshold to use. Since a Ray is a 1D object in a 3D space, an epsilon threshold is used to allow errors caused by floating-point inaccuracies. Return ValueTrue if this ray contains the given object, up to the given distance threshold. See Also |