#include "rsdl_dist.h"
#include <vcl_cassert.h>
#include <vcl_cmath.h>
#include <vnl/vnl_math.h>
Go to the source code of this file.
Functions | |
| double | rsdl_dist_sq (const rsdl_point &p, const rsdl_point &q) |
| Return the square distance between two rsdl_point's. | |
| double | rsdl_dist (const rsdl_point &p, const rsdl_point &q) |
| Return the distance between two rsdl_point's. | |
| double | rsdl_dist_sq (const rsdl_point &p, const rsdl_bounding_box &b) |
| Return the minimum square distance between p and any point in b. | |
| double | rsdl_dist (const rsdl_point &p, const rsdl_bounding_box &b) |
| Return the minimum distance between p and any point in b. | |
| bool | rsdl_dist_point_in_box (const rsdl_point &pt, const rsdl_bounding_box &box) |
| Determine if a point is inside a bounding box. | |
| void | rsdl_dist_box_relation (const rsdl_bounding_box &inner, const rsdl_bounding_box &outer, bool &inside, bool &intersects) |
| Determine the relation between a proported "inner" box and a proported "outer" box. | |
| double rsdl_dist | ( | const rsdl_point & | p, | |
| const rsdl_bounding_box & | b | |||
| ) |
Return the minimum distance between p and any point in b.
Definition at line 80 of file rsdl_dist.cxx.
| double rsdl_dist | ( | const rsdl_point & | p, | |
| const rsdl_point & | q | |||
| ) |
| void rsdl_dist_box_relation | ( | const rsdl_bounding_box & | inner, | |
| const rsdl_bounding_box & | outer, | |||
| bool & | inside, | |||
| bool & | intersects | |||
| ) |
Determine the relation between a proported "inner" box and a proported "outer" box.
inside will be true iff all points in inner are in outer intersect will be true iff at least one point from inner is in outer.
Definition at line 116 of file rsdl_dist.cxx.
| bool rsdl_dist_point_in_box | ( | const rsdl_point & | pt, | |
| const rsdl_bounding_box & | box | |||
| ) |
| double rsdl_dist_sq | ( | const rsdl_point & | p, | |
| const rsdl_bounding_box & | b | |||
| ) |
Return the minimum square distance between p and any point in b.
Definition at line 40 of file rsdl_dist.cxx.
| double rsdl_dist_sq | ( | const rsdl_point & | p, | |
| const rsdl_point & | q | |||
| ) |
1.5.1