#include <point.h>
Public Member Functions | |
Point (double, double, double) | |
void | add (double, double, double) |
void | clear (void) |
double | getSqD (void) const |
double | getClosestX (void) const |
double | getClosestY (void) const |
double | getClosestZ (void) const |
Point::Point | ( | double | j, | |
double | k, | |||
double | l | |||
) |
Initialize point class.
[in] | j | X-component of seed point. |
[in] | k | Y-component of seed point. |
[in] | l | Z-component of seed point. |
void Point::add | ( | double | j, | |
double | k, | |||
double | l | |||
) |
Calculate distance from input point to stored vertex and record point if closer than stored point.
[in] | j | X-component of input point. |
[in] | k | Y-component of input point. |
[in] | l | Z-component of input point. |
void Point::clear | ( | void | ) |
Rest point class.
double Point::getSqD | ( | void | ) | const |
Get squared distance between point of interest and closest point.
double Point::getClosestX | ( | void | ) | const |
Get x-component of closest location found.
double Point::getClosestY | ( | void | ) | const |
Get y-component of closest location found.
double Point::getClosestZ | ( | void | ) | const |
Get z-component of closest location found.