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_CloserPointDirection (const ISS_SignedDistance< ISS > &sd, const Number max_distance, const int max_iterations=5, const Number tolerance=std::sqrt(std::numeric_limits< Number >::epsilon())) | |
Construct from the signed distance data structure. | |
ISS_SD_CloserPointDirection (const ISS_SD_CloserPointDirection &other) | |
Copy constructor. | |
result_type | operator() (argument_type x, argument_type dir) const |
Return a closer 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_CloserPointDirection< ISS >::operator() | ( | argument_type | x, | |
argument_type | dir | |||
) | const [inline] |
Return a closer point along the direction.
x | The position. | |
dir | The direction (normalized). |
References computeDistance(), computeDotProduct(), computeMagnitude(), and sign().