#include <testing_planes.h>
Public Types | |
typedef Eigen::Vector3f | tPoint |
Point type. | |
Public Member Functions | |
CTestingPlane () | |
Simple constructor. | |
CTestingPlane (const CTestingPlane &plane) | |
Copy constructor. | |
CTestingPlane (const tPoint &p1, const tPoint &p2, const tPoint &p3) | |
CTestingPlane (const tPoint &point, const tPoint &normal) | |
Initialize by point and normal. | |
virtual bool | isIn (double x, double y, double z) |
Test point. | |
CTestingPlane | operator= (const CTestingPlane &plane) |
Assignement operator. | |
void | set (const tPoint &p1, const tPoint &p2, const tPoint &p3) |
Initialize by three points. | |
void | set (const tPoint &point, const tPoint &normal) |
Initialize by point and normal. | |
Protected Attributes | |
double | m_d |
Last plane parameter. | |
tPoint | m_plane |
Plane parameters. |
Test point by plane. Return true if point is in front of this plane.
Definition at line 43 of file testing_planes.h.
typedef Eigen::Vector3f srs_env_model::CTestingPlane::tPoint |
Point type.
Definition at line 47 of file testing_planes.h.
srs_env_model::CTestingPlane::CTestingPlane | ( | const CTestingPlane & | plane | ) |
srs_env_model::CTestingPlane::CTestingPlane | ( | const tPoint & | p1, |
const tPoint & | p2, | ||
const tPoint & | p3 | ||
) |
Initialize by three points
This points are used:
normal | p3 | / | / | / p1---------------p2
d1 = p2 - p1 d2 = p3 - p1 n = d1 x d2
Initialize by three points
Definition at line 67 of file testing_planes.cpp.
srs_env_model::CTestingPlane::CTestingPlane | ( | const tPoint & | point, |
const tPoint & | normal | ||
) |
Initialize by point and normal.
Initialize by point and normal
Definition at line 77 of file testing_planes.cpp.
bool srs_env_model::CTestingPlane::isIn | ( | double | x, |
double | y, | ||
double | z | ||
) | [virtual] |
Test point.
Test point
Implements srs_env_model::CTestingObjectBase.
Definition at line 131 of file testing_planes.cpp.
srs_env_model::CTestingPlane srs_env_model::CTestingPlane::operator= | ( | const CTestingPlane & | plane | ) |
void srs_env_model::CTestingPlane::set | ( | const tPoint & | p1, |
const tPoint & | p2, | ||
const tPoint & | p3 | ||
) |
Initialize by three points.
Initialize by three points
This points are used:
normal | p3 | / | / | / p1---------------p2
d1 = p2 - p1 d2 = p3 - p1 n = d1 x d2
Definition at line 100 of file testing_planes.cpp.
void srs_env_model::CTestingPlane::set | ( | const tPoint & | point, |
const tPoint & | normal | ||
) |
Initialize by point and normal.
Initialize by point and normal
Definition at line 120 of file testing_planes.cpp.
double srs_env_model::CTestingPlane::m_d [protected] |
Last plane parameter.
Definition at line 97 of file testing_planes.h.
tPoint srs_env_model::CTestingPlane::m_plane [protected] |
Plane parameters.
Definition at line 94 of file testing_planes.h.