Point Containment Test Functions

Collection of functions testing for a point's containment within various objects. More...

Functions

bool playrho::d2::TestPoint (const DistanceProxy &proxy, Length2 point) noexcept
 Tests a point for containment in the given distance proxy. More...
 
bool playrho::d2::TestPoint (const Shape &shape, Length2 point) noexcept
 Test a point for containment in the given shape. More...
 
bool playrho::d2::TestPoint (const Fixture &f, Length2 p) noexcept
 Tests a point for containment in a fixture. More...
 
bool TestPoint (const DistanceProxy &proxy, Length2 point) noexcept
 Tests a point for containment in the given distance proxy. More...
 
bool TestPoint (const Shape &shape, Length2 point) noexcept
 Test a point for containment in the given shape. More...
 
bool TestPoint (const Fixture &f, Length2 p) noexcept
 Tests a point for containment in a fixture. More...
 

Detailed Description

Collection of functions testing for a point's containment within various objects.

Function Documentation

◆ TestPoint() [1/6]

bool TestPoint ( const DistanceProxy proxy,
Length2  point 
)
noexcept

Tests a point for containment in the given distance proxy.

Parameters
proxyDistance proxy to check if point is within.
pointPoint in local coordinates.
Returns
true if point is contained in the proxy, false otherwise.

Definition at line 114 of file DistanceProxy.cpp.

◆ TestPoint() [2/6]

bool TestPoint ( const Shape shape,
Length2  point 
)
noexcept

Test a point for containment in the given shape.

Parameters
shapeShape to use for test.
pointPoint in local coordinates.
Returns
true if the given point is contained by the given shape, false otherwise.

Definition at line 84 of file Shape.cpp.

◆ TestPoint() [3/6]

bool TestPoint ( const Fixture f,
Length2  p 
)
noexcept

Tests a point for containment in a fixture.

Parameters
fFixture to use for test.
pPoint in world coordinates.

Definition at line 80 of file Fixture.cpp.

◆ TestPoint() [4/6]

bool TestPoint ( const DistanceProxy proxy,
Length2  point 
)
related

Tests a point for containment in the given distance proxy.

Parameters
proxyDistance proxy to check if point is within.
pointPoint in local coordinates.
Returns
true if point is contained in the proxy, false otherwise.

Definition at line 114 of file DistanceProxy.cpp.

◆ TestPoint() [5/6]

bool TestPoint ( const Shape shape,
Length2  point 
)
related

Test a point for containment in the given shape.

Parameters
shapeShape to use for test.
pointPoint in local coordinates.
Returns
true if the given point is contained by the given shape, false otherwise.

Definition at line 84 of file Shape.cpp.

◆ TestPoint() [6/6]

bool TestPoint ( const Fixture f,
Length2  p 
)
related

Tests a point for containment in a fixture.

Parameters
fFixture to use for test.
pPoint in world coordinates.

Definition at line 80 of file Fixture.cpp.