contoursIntersection Class Reference
#include <contoursIntersection.h>
List of all members.
Public Member Functions |
| contoursIntersection () |
| ~contoursIntersection () |
double | Slope (double x0, double y0, double x1, double y1) |
double | Normal (double x0, double y0, double *m, double xi) |
void | Intersection (double x01, double y01, double x02, double y02, double mn, double m2, double *x, double *y) |
void | SetContour1 (std::vector< double > *InX1, std::vector< double > *InY1, std::vector< double > *InZ1) |
void | SetContour2 (std::vector< double > *InX2, std::vector< double > *InY2, std::vector< double > *InZ2) |
void | InterBetweenContours (std::vector< double > *OutX, std::vector< double > *OutY, std::vector< double > *OutZ) |
void | PossibleIntersections (std::vector< double > *OutX, std::vector< double > *OutY, std::vector< double > *OutZ) |
void | IntersectionPoints (std::vector< double > *OutX, std::vector< double > *OutY, std::vector< double > *OutZ) |
void | SetErrorParameter (double val) |
int | GetErrorBetweenContours (double error) |
Private Attributes |
std::vector< double > | _InX1 |
std::vector< double > | _InY1 |
std::vector< double > | _InZ1 |
std::vector< double > | _InX2 |
std::vector< double > | _InY2 |
std::vector< double > | _InZ2 |
Detailed Description
Definition at line 6 of file contoursIntersection.h.
Constructor & Destructor Documentation
contoursIntersection::contoursIntersection |
( |
|
) |
|
contoursIntersection::~contoursIntersection |
( |
|
) |
|
Member Function Documentation
int contoursIntersection::GetErrorBetweenContours |
( |
double |
error |
) |
|
void contoursIntersection::InterBetweenContours |
( |
std::vector< double > * |
OutX, |
|
|
std::vector< double > * |
OutY, |
|
|
std::vector< double > * |
OutZ | |
|
) |
| | |
void contoursIntersection::Intersection |
( |
double |
x01, |
|
|
double |
y01, |
|
|
double |
x02, |
|
|
double |
y02, |
|
|
double |
mn, |
|
|
double |
m2, |
|
|
double * |
x, |
|
|
double * |
y | |
|
) |
| | |
Definition at line 26 of file contoursIntersection.cxx.
00027 {
00028 *x = ( y02-y01-(m2*x02)+(mn*x01) )/(mn-m2);
00029 *y = m2*(*x-x02)+y02;
00030 }
void contoursIntersection::IntersectionPoints |
( |
std::vector< double > * |
OutX, |
|
|
std::vector< double > * |
OutY, |
|
|
std::vector< double > * |
OutZ | |
|
) |
| | |
double contoursIntersection::Normal |
( |
double |
x0, |
|
|
double |
y0, |
|
|
double * |
m, |
|
|
double |
xi | |
|
) |
| | |
Definition at line 18 of file contoursIntersection.cxx.
00019 {
00020 double y;
00021 *m = -(1/(*m));
00022 y = ((*m)*(xi - x0)) + y0;
00023 return y;
00024 }
void contoursIntersection::PossibleIntersections |
( |
std::vector< double > * |
OutX, |
|
|
std::vector< double > * |
OutY, |
|
|
std::vector< double > * |
OutZ | |
|
) |
| | |
void contoursIntersection::SetContour1 |
( |
std::vector< double > * |
InX1, |
|
|
std::vector< double > * |
InY1, |
|
|
std::vector< double > * |
InZ1 | |
|
) |
| | |
void contoursIntersection::SetContour2 |
( |
std::vector< double > * |
InX2, |
|
|
std::vector< double > * |
InY2, |
|
|
std::vector< double > * |
InZ2 | |
|
) |
| | |
void contoursIntersection::SetErrorParameter |
( |
double |
val |
) |
|
double contoursIntersection::Slope |
( |
double |
x0, |
|
|
double |
y0, |
|
|
double |
x1, |
|
|
double |
y1 | |
|
) |
| | |
Member Data Documentation
The documentation for this class was generated from the following files: