A plane in 3D space in Hessian normal form. More...
Public Member Functions | |
Plane (double nx, double ny, double nz, double distanceToOrigin) | |
Creates a new Plane object from the given normal vector components and the distanceToOrigin . More... | |
Plane (Point3Dd normal, double distanceToOrigin) | |
Creates a new Plane object. More... | |
double | DistanceToPoint (Point3Df pt) |
Calculates the distance to the point pt . More... | |
double | DistanceToPoint (Point3Dd pt) |
Calculates the distance to the point pt . More... | |
double | DistanceToPoint (double x, double y, double z) |
Calculates the distance to the point given by its components. More... | |
AffineMatrix3D | AlignToXYPlane () |
Calculates a rigid body transformation that maps the plane into the xy plane of the global coordinate system. More... | |
Properties | |
Point3Dd | Normal [get, set] |
The normal vector of the plane. | |
double | DistanceToOrigin [get, set] |
Distance to the origin in point units. | |
A plane in 3D space in Hessian normal form.
Plane | ( | double | nx, |
double | ny, | ||
double | nz, | ||
double | distanceToOrigin | ||
) |
Creates a new Plane object from the given normal vector components and the distanceToOrigin .
nx | Normal vector x component. |
ny | Normal vector y component. |
nz | Normal vector z component |
distanceToOrigin | Distance to origin in point units. |
Creates a new Plane object.
normal | Normal vector. |
distanceToOrigin | Distance to origin in point units. |
AffineMatrix3D AlignToXYPlane | ( | ) |
Calculates a rigid body transformation that maps the plane into the xy plane of the global coordinate system.
If a point cloud contains a tilted plane (e.g. representing a conveyer belt), which is not aligned to the xy plane, the following steps should be taken:
Please note the following:
double DistanceToPoint | ( | double | x, |
double | y, | ||
double | z | ||
) |
Calculates the distance to the point given by its components.
x | Point x component. |
y | Point y component. |
z | Point z component. |
double DistanceToPoint | ( | Point3Dd | pt | ) |
Calculates the distance to the point pt .
pt | Point to calculate the distance to. |
double DistanceToPoint | ( | Point3Df | pt | ) |
Calculates the distance to the point pt .
pt | Point to calculate the distance to. |