Back to class index
| LineSegment::ContainsSyntaxbool LineSegment::Contains(const float4 &point, float distanceThreshold=1e-3f) const; [4 lines of code]bool LineSegment::Contains(const LineSegment &lineSegment, float distanceThreshold=1e-3f) const; [4 lines of code] Tests if the given point or line segment is contained on this line segment. ParametersfloatdistanceThresholdBecause a line segment is an one-dimensional object in 3D space, an epsilon value is used as a threshold for this test. This effectively transforms this line segment to a capsule with the radius indicated by this value. Return ValueTrue if this line segment contains the given point or line segment. See Also |