Back to class index
| Polygon::ContainsSyntaxbool Polygon::Contains(const float4 &point, float polygonThicknessSq=1e-5f) const; [68 lines of code]bool Polygon::Contains(const LineSegment &lineSegment, float polygonThickness=1e-3f) const; [22 lines of code] bool Polygon::Contains(const Triangle &triangle, float polygonThickness=1e-3f) const; [6 lines of code] bool Polygon::Contains(const Polygon &polygon, float polygonThickness=1e-3f) const; [7 lines of code] Tests if the given object, expressed in global (world) space, is fully contained inside this polygon. Only call this function if the polygon is planar. This test is performed in global space of this polygon, i.e. by specifying the other object in global (world) space coordinates. Parametersconst float4 &pointThe point to test for containment. Return ValueTrue if the given object is fully contained inside this polygon (and the plane of this polygon). Work in progress:Todo: in bool Polygon::Contains(const float4 &point, float polygonThicknessSq=1e-5f) const: Add ContainsConvex(vec/etc.). See RTCD p. 202. Add Contains(Circle/Disc). |