#include <plane3d.hpp>
Representation of the plane equation ax + by + cz + d = dist
Definition at line 11 of file plane3d.hpp.
Plane3D::Plane3D |
( |
const double |
coeffs[4] | ) |
|
|
inline |
Coefficient constructor - simply copy the given coefficients
- Parameters
-
coeffs | Coefficients {a,b,c,d} |
Definition at line 19 of file plane3d.hpp.
Plane3D::Plane3D |
( |
const Eigen::Matrix4f |
coeffs | ) |
|
|
inline |
Matrix constructor - treat the z axis of the rotation part of the matrix as a normal vector
- Parameters
-
coeffs | Matrix to construct from |
Definition at line 31 of file plane3d.hpp.
Plane3D::Plane3D |
( |
const Eigen::Matrix4d |
coeffs | ) |
|
|
inline |
Matrix constructor - treat the z axis of the rotation part of the matrix as a normal vector
- Parameters
-
coeffs | Matrix to construct from |
Definition at line 49 of file plane3d.hpp.
Zero constructor. Initialize coefficients to zero
Definition at line 66 of file plane3d.hpp.
double Plane3D::getCoefficient |
( |
const int |
i | ) |
|
|
inline |
Get a coefficient
- Parameters
-
- Returns
- coefficient
Definition at line 89 of file plane3d.hpp.
double Plane3D::getDistance |
( |
double const |
pt[3] | ) |
const |
|
inline |
Get distance from the plane to a point
- Parameters
-
pt | point to find distance to |
- Returns
- distance to point
Definition at line 98 of file plane3d.hpp.
void Plane3D::setCoefficient |
( |
const int |
i, |
|
|
const double |
c |
|
) |
| |
|
inline |
Set a coefficient
- Parameters
-
i | coefficient to set |
c | value to set it to |
Definition at line 80 of file plane3d.hpp.
double Plane3D::m_coeffs[4] |
|
protected |
Project a point onto the plane
- Parameters
-
projected | Projected point will be returned here |
pt | Point to project The plane equation coefficients a,b,c,d |
Definition at line 123 of file plane3d.hpp.
The documentation for this class was generated from the following file:
- /media/dev/bamboodrive/b/xml-data/build-dir/CX-TB-JOB1/CX/CX/source/plugins/org.custusx.anglecorrection/core/plane3d.hpp