Functor that returns the closest point along a specified direction to an (N-1)-D mesh in N-D space. More...
#include <ISS_SignedDistance.h>
Public Types | |
typedef Base::argument_type | argument_type |
The argument type is a point. | |
typedef Base::result_type | result_type |
The result type is a point. | |
typedef ISS_SignedDistance < ISS >::Number | Number |
The number type. | |
Public Member Functions | |
ISS_SD_ClosestPointDirection (const ISS_SignedDistance< ISS > &sd, const int max_iterations=5, const Number tolerance=std::sqrt(std::numeric_limits< Number >::epsilon())) | |
Construct from the signed distance data structure. | |
ISS_SD_ClosestPointDirection (const ISS_SD_ClosestPointDirection &other) | |
Copy constructor. | |
result_type | operator() (argument_type x, argument_type dir) const |
Return the closest point along the direction. |
Functor that returns the closest point along a specified direction to an (N-1)-D mesh in N-D space.
result_type ISS_SD_ClosestPointDirection< ISS >::operator() | ( | argument_type | x, | |
argument_type | dir | |||
) | const [inline] |
Return the closest point along the direction.
x | The position. | |
dir | The direction (normalized). |
References computeDotProduct(), computeMagnitude(), and sign().