#include <vmal_operators.h>
Public Member Functions | |
vmal_operators () | |
~vmal_operators () | |
Static Public Member Functions | |
static double | project_point (double x0, double y0, double ax, double ay, double bx, double by, double *x, double *y) |
Project the point (x0,y0) on the segment [(ax,ay),(bx,by)]. | |
static bool | project_point (vnl_double_3 &x, vnl_double_3 &a, vnl_double_3 &b, vnl_double_3 &px) |
Project the point x on the segment [a,b]. | |
static bool | cross_seg (double f1x, double f1y, double f2x, double f2y, double s1x, double s1y, double s2x, double s2y) |
Look if the two segments cross. | |
static bool | line_cross_seg (vnl_double_3 start_seg, vnl_double_3 end_seg, vnl_double_3 &line_equ, vnl_double_3 &inter, double &alpha) |
Compute the crossing point "inter" of a segment and a line. |
Definition at line 16 of file vmal_operators.h.
vmal_operators::vmal_operators | ( | ) |
Definition at line 7 of file vmal_operators.cxx.
bool vmal_operators::cross_seg | ( | double | f1x, |
double | f1y, | ||
double | f2x, | ||
double | f2y, | ||
double | s1x, | ||
double | s1y, | ||
double | s2x, | ||
double | s2y | ||
) | [static] |
Look if the two segments cross.
Definition at line 77 of file vmal_operators.cxx.
bool vmal_operators::line_cross_seg | ( | vnl_double_3 | start_seg, |
vnl_double_3 | end_seg, | ||
vnl_double_3 & | line_equ, | ||
vnl_double_3 & | inter, | ||
double & | alpha | ||
) | [static] |
Compute the crossing point "inter" of a segment and a line.
alpha is the angle between the two. It returns true iff the line crosses the segment inside [start_seg,end_seg].
Definition at line 105 of file vmal_operators.cxx.
double vmal_operators::project_point | ( | double | x0, |
double | y0, | ||
double | ax, | ||
double | ay, | ||
double | bx, | ||
double | by, | ||
double * | x, | ||
double * | y | ||
) | [static] |
Project the point (x0,y0) on the segment [(ax,ay),(bx,by)].
(x,y) is the projected point. It returns the orthogonal distance. (x,y)=(-1,-1) if the projected point does not belong to the segment.
Definition at line 19 of file vmal_operators.cxx.
bool vmal_operators::project_point | ( | vnl_double_3 & | x, |
vnl_double_3 & | a, | ||
vnl_double_3 & | b, | ||
vnl_double_3 & | px | ||
) | [static] |
Project the point x on the segment [a,b].
px is the projected point. It returns the orthogonal distance. px=(-1,-1) if the projected point does not belong to the segment.
Definition at line 51 of file vmal_operators.cxx.
vmal_operators::~vmal_operators | ( | ) |
Definition at line 11 of file vmal_operators.cxx.