Container storing a homogenous point. More...
#include <homogeneous_point.hpp>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | HomogeneousPoint (const T &value=T()) |
Default constructor - sets all elements to the same value. More... | |
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... | |
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... | |
const T & | x () const |
Returns a constant reference to the x co-ordinate. More... | |
T | x () |
Returns a copy of the x co-ordinate. More... | |
void | x (const T &value) |
Sets the x-coordinate. More... | |
const T & | y () const |
Returns a constant reference to the y co-ordinate. More... | |
T | y () |
Returns a copy of the y co-ordinate. More... | |
void | y (const T &value) |
Sets the y-coordinate. More... | |
const T & | z () const |
Returns a constant reference to the z co-ordinate. More... | |
T | z () |
Returns a copy of the z co-ordinate. More... | |
void | z (const T &value) |
Sets the z-coordinate. 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 56 of file homogeneous_point.hpp.
|
inline |
Default constructor - sets all elements to the same value.
Definition at line 62 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 74 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 85 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 95 of file homogeneous_point.hpp.
|
inlinevirtual |
Definition at line 99 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 117 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 128 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 137 of file homogeneous_point.hpp.
|
inline |
Returns a constant reference to the x co-ordinate.
Definition at line 144 of file homogeneous_point.hpp.
|
inline |
Returns a copy of the x co-ordinate.
Definition at line 162 of file homogeneous_point.hpp.
|
inline |
Sets the x-coordinate.
Definition at line 176 of file homogeneous_point.hpp.
|
inline |
Returns a constant reference to the y co-ordinate.
Definition at line 150 of file homogeneous_point.hpp.
|
inline |
Returns a copy of the y co-ordinate.
Definition at line 168 of file homogeneous_point.hpp.
|
inline |
Sets the y-coordinate.
Definition at line 177 of file homogeneous_point.hpp.
|
inline |
Returns a constant reference to the z co-ordinate.
Definition at line 156 of file homogeneous_point.hpp.
|
inline |
Returns a copy of the z co-ordinate.
Definition at line 174 of file homogeneous_point.hpp.
|
inline |
Sets the z-coordinate.
Definition at line 178 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 201 of file homogeneous_point.hpp.
|
private |
Definition at line 184 of file homogeneous_point.hpp.