Back to class index
| Ray::ContainsSyntaxbool Ray::Contains(const float3 &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. Performancebool Ray::Contains(const float3 &point, float distanceThreshold=1e-3f) const20.526nsecs/call ≈ 48.72M calls/second ≈ 811.97k calls/frame (@ 60fps). 20.526nsecs/call ≈ 48.72M calls/second ≈ 811.97k calls/frame (@ 60fps). See AlsoLeave a Comment |