Container storing a homogenous point. More...
#include <homogeneous_point.hpp>
Public Member Functions | |
| HomogeneousPoint (const ecl::linear_algebra::Matrix< T, 3, 1 > &vec) | |
| Initialises with the specified eigen style vector. More... | |
| HomogeneousPoint (const ecl::linear_algebra::Matrix< T, 4, 1 > &vec) | |
| Initialises with the specified eigen style vector in homogeneous format. More... | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW | HomogeneousPoint (const T &value=T()) |
| Default constructor - sets all elements to the same value. More... | |
| HomogeneousPoint (const T &x_i, const T &y_i, const T &z_i) | |
| Initialises the point with the specified values. More... | |
| ecl::linear_algebra::CommaInitializer< ecl::linear_algebra::Matrix< T, 4, 1 > > | operator<< (const T &value) |
| ecl::linear_algebra::Matrix< T, 4, 1 > & | positionVector () |
| Representation of the position vector in eigen vector format. More... | |
| const ecl::linear_algebra::Matrix< T, 4, 1 > & | positionVector () const |
| Representation of the position vector in const eigen vector format. More... | |
| T | x () |
| Returns a copy of the x co-ordinate. More... | |
| const T & | x () const |
| Returns a constant reference to the x co-ordinate. More... | |
| T | y () |
| Returns a copy of the y co-ordinate. More... | |
| const T & | y () const |
| Returns a constant reference to the y co-ordinate. More... | |
| T | z () |
| Returns a copy of the z co-ordinate. More... | |
| const T & | z () const |
| Returns a constant reference to the z co-ordinate. More... | |
| virtual | ~HomogeneousPoint () |
Private Attributes | |
| ecl::linear_algebra::Matrix< T, 4, 1 > | elements |
Friends | |
| template<typename OutputStream , typename Type > | |
| OutputStream & | operator<< (OutputStream &ostream, const HomogeneousPoint< Type > &point) |
Container storing a homogenous point.
Stores float x-y-z triples and a fourth element set to 1.0.
| T | : the underlying element type - must be float. |
Definition at line 62 of file homogeneous_point.hpp.
|
inline |
Default constructor - sets all elements to the same value.
Definition at line 68 of file homogeneous_point.hpp.
|
inline |
Initialises with the specified eigen style vector.
This only uses a partial vector (the remaining element gets automatically filled in as 1.0).
| vec | : input three dimensional eigen style vector. |
Definition at line 80 of file homogeneous_point.hpp.
|
inline |
Initialises with the specified eigen style vector in homogeneous format.
Takes the full vector in this case - last element must always be 1.0.
| vec | : input three dimensional eigen style vector. |
Definition at line 91 of file homogeneous_point.hpp.
|
inline |
Initialises the point with the specified values.
| x_i | : x co-ordinate. |
| y_i | : y co-ordinate. |
| z_i | : z co-ordinate. |
Definition at line 101 of file homogeneous_point.hpp.
|
inlinevirtual |
Definition at line 105 of file homogeneous_point.hpp.
|
inline |
Provides a comma initialisation facility. This initiates the comma initialiser with an iterator to the underlying elements and then leaves the initialiser to do the rest.
| value | : the first of three points + last point must be 1.0. |
Definition at line 123 of file homogeneous_point.hpp.
|
inline |
Representation of the position vector in eigen vector format.
Converts representation to an eigen vector reference - oft necessary in mathematics calculations.
Definition at line 134 of file homogeneous_point.hpp.
|
inline |
Representation of the position vector in const eigen vector format.
Converts representation to a const eigen vector reference - oft necessary in mathematics calculations.
Definition at line 143 of file homogeneous_point.hpp.
|
inline |
Returns a copy of the x co-ordinate.
Definition at line 168 of file homogeneous_point.hpp.
|
inline |
Returns a constant reference to the x co-ordinate.
Definition at line 150 of file homogeneous_point.hpp.
|
inline |
Returns a copy of the y co-ordinate.
Definition at line 174 of file homogeneous_point.hpp.
|
inline |
Returns a constant reference to the y co-ordinate.
Definition at line 156 of file homogeneous_point.hpp.
|
inline |
Returns a copy of the z co-ordinate.
Definition at line 180 of file homogeneous_point.hpp.
|
inline |
Returns a constant reference to the z co-ordinate.
Definition at line 162 of file homogeneous_point.hpp.
|
friend |
Insertion operator for sending the point to an output stream. This is raw, and has no formatting.
| ostream | : the output stream. |
| point | : the point to be inserted. |
Definition at line 207 of file homogeneous_point.hpp.
|
private |
Definition at line 190 of file homogeneous_point.hpp.