Class that represents a plane in 3D space. More...
#include <Geometric.hpp>
Public Member Functions | |
| Plane () | |
| Default constructor. | |
| Plane (const sal3d_geometric_plane &plane) | |
| Constructor from a C sal3d_geometric_plane. | |
| Plane (const Plane &plane) | |
| Copy Constructor. | |
| Plane (float A, float B, float C, float D) | |
| Constructor from values. | |
| Plane (const Point3D &p1, const Point3D &p2, const Point3D &p3) | |
| Constructor from 3 Point3D points. | |
| const sal3d_geometric_plane & | c_plane () const |
| Get a C plane structure with the Plane values. | |
| const float & | a () const |
| Get the const A term of the Plane. | |
| float & | a () |
| Get the A term of the Plane. | |
| const float & | b () const |
| Get the const B term of the Plane. | |
| float & | b () |
| Get the B term of the Plane. | |
| const float & | c () const |
| Get the const C term of the Plane. | |
| float & | c () |
| Get the C term of the Plane. | |
| const float & | d () const |
| Get the const D term of the Plane. | |
| float & | d () |
| Get the D term of the Plane. | |
| Movement3D | alignToZ (const Point3D &point) const |
| Calculates the movement needed to align Plane to Z=0. | |
| Plane & | operator= (const Plane &rhs) |
| Assignment operator. | |
| const float & | operator[] (int idx) const |
| Gets a const term of the Plane. | |
| float & | operator[] (int idx) |
| Gets a term of the Plane. | |
Class that represents a plane in 3D space.
This class requires linking with geometric.lib (import library for geometric.dll).
| sal3d::Geometric::Plane::Plane | ( | ) | [inline] |
Default constructor.
Creates an uninitialized Plane.
| sal3d::Geometric::Plane::Plane | ( | const sal3d_geometric_plane & | plane | ) | [inline, explicit] |
Constructor from a C sal3d_geometric_plane.
Cretes a C++ Plane object that copies the values from the C sal3d_geometric_plane.
| [in] | plane | The C plane struct. |
| sal3d::Geometric::Plane::Plane | ( | const Plane & | plane | ) | [inline] |
| sal3d::Geometric::Plane::Plane | ( | float | A, |
| float | B, | ||
| float | C, | ||
| float | D | ||
| ) | [inline] |
Constructor from values.
| [in] | A | A term in Ax+By+Cz+D=0 general plane equation. |
| [in] | B | B term in Ax+By+Cz+D=0 general plane equation. |
| [in] | C | C term in Ax+By+Cz+D=0 general plane equation. |
| [in] | D | D term in Ax+By+Cz+D=0 general plane equation. |
| sal3d::Geometric::Plane::Plane | ( | const Point3D & | p1, |
| const Point3D & | p2, | ||
| const Point3D & | p3 | ||
| ) | [inline] |
Constructor from 3 Point3D points.
Creates a Plane from 3 points belonging to it. The vectors to calculate the plane will be taken as p1 -> p2 and p1 -> p3.
| [in] | p1 | First point. |
| [in] | p2 | Second point. |
| [in] | p3 | Third point. |
References sal3d::Point3D::c_point_3d().
| const float& sal3d::Geometric::Plane::a | ( | ) | const [inline] |
| float& sal3d::Geometric::Plane::a | ( | ) | [inline] |
| Movement3D sal3d::Geometric::Plane::alignToZ | ( | const Point3D & | point | ) | const [inline] |
Calculates the movement needed to align Plane to Z=0.
Given a pivot point, this function calculates the needed rotation and translation to align the current Plane to the plane with Z=0.
| [in] | point | Point3D used as the pivot, i.e., this point will have the same coordinates before and after the rotation. |
References sal3d::Point3D::c_point_3d().
| const float& sal3d::Geometric::Plane::b | ( | ) | const [inline] |
| float& sal3d::Geometric::Plane::b | ( | ) | [inline] |
| const float& sal3d::Geometric::Plane::c | ( | ) | const [inline] |
| float& sal3d::Geometric::Plane::c | ( | ) | [inline] |
| const sal3d_geometric_plane& sal3d::Geometric::Plane::c_plane | ( | ) | const [inline] |
Get a C plane structure with the Plane values.
Referenced by sal3d::Geometric::distanceToPlane().
| const float& sal3d::Geometric::Plane::d | ( | ) | const [inline] |
| float& sal3d::Geometric::Plane::d | ( | ) | [inline] |
| const float& sal3d::Geometric::Plane::operator[] | ( | int | idx | ) | const [inline] |
Gets a const term of the Plane.
| [in] | idx | The term to return. The range is 0..3: 0: A, 1: B, 2: C, 3: D |
idx. | float& sal3d::Geometric::Plane::operator[] | ( | int | idx | ) | [inline] |
Gets a term of the Plane.
| [in] | idx | The term to return. The range is 0..3: 0: A, 1: B, 2: C, 3: D |
idx.
by
1.7.6.1