Specialisation for a cartesian point of dimension 2. More...
#include <cartesian_point.hpp>
Public Member Functions | |
CartesianPoint (const CartesianPoint< T, 2 > &point) | |
Default copy constructor. More... | |
CartesianPoint (const ecl::linear_algebra::Matrix< T, 2, 1 > &vec) | |
Initialises with the specified input vector. More... | |
CartesianPoint (const T &value=T()) | |
Default constructor - sets all elements to the same value. More... | |
CartesianPoint (const T &x_i, const T &y_i) | |
T | distance (const CartesianPoint< T, 2 > &other) |
double | get_angle (void) |
double | Norm (void) |
T | Normalize (void) |
bool | operator!= (const CartesianPoint< T, 2 > &other) const |
CartesianPoint< T, 2 > | operator* (double d) const |
CartesianPoint< T, 2 > | operator+ (const CartesianPoint< T, 2 > &v) const |
void | operator+= (const CartesianPoint< T, 2 > &other) |
CartesianPoint< T, 2 > | operator- (const CartesianPoint< T, 2 > &v) const |
ecl::linear_algebra::CommaInitializer< ecl::linear_algebra::Matrix< T, 2, 1 > > | operator<< (const T &value) |
const CartesianPoint< T, 2 > & | operator= (const CartesianPoint< T, 2 > &v) |
bool | operator== (const CartesianPoint< T, 2 > &other) const |
T & | operator[] (const unsigned int &index) |
const T | operator[] (const unsigned int &index) const |
ecl::linear_algebra::Matrix< T, 2, 1 > & | positionVector () |
Representation of the position vector in eigen vector format. More... | |
const ecl::linear_algebra::Matrix< T, 2, 1 > & | positionVector () const |
Representation of the position vector in const eigen vector format. More... | |
void | rotate (const double &angle) |
unsigned int | size () |
Size/dimension of the cartesian point. 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... | |
virtual | ~CartesianPoint () |
Private Attributes | |
ecl::linear_algebra::Matrix< T, 2, 1 > | elements |
Friends | |
template<typename OutputStream , typename Type > | |
OutputStream & | operator<< (OutputStream &ostream, const CartesianPoint< Type, 2 > &point) |
Specialisation for a cartesian point of dimension 2.
It introduces handles to x(), y(), z() for convenience, whilst still permitting a vector representation of the underlying storage container via the positionVector() method.
T | : the underlying element type. |
Definition at line 305 of file cartesian_point.hpp.
|
inline |
Default constructor - sets all elements to the same value.
Definition at line 312 of file cartesian_point.hpp.
|
inline |
Initialises with the specified input vector.
vec | : input three dimensional vector. |
Definition at line 318 of file cartesian_point.hpp.
|
inline |
Default copy constructor.
point | : copy this point directly. |
Definition at line 324 of file cartesian_point.hpp.
|
inline |
Definition at line 326 of file cartesian_point.hpp.
|
inlinevirtual |
Definition at line 330 of file cartesian_point.hpp.
|
inline |
Definition at line 452 of file cartesian_point.hpp.
|
inline |
Definition at line 442 of file cartesian_point.hpp.
|
inline |
Definition at line 489 of file cartesian_point.hpp.
|
inline |
Definition at line 458 of file cartesian_point.hpp.
|
inline |
Definition at line 425 of file cartesian_point.hpp.
|
inline |
Definition at line 474 of file cartesian_point.hpp.
|
inline |
Definition at line 479 of file cartesian_point.hpp.
|
inline |
Definition at line 447 of file cartesian_point.hpp.
|
inline |
Definition at line 484 of file cartesian_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. The initialiser will do range checking if NDEBUG is not defined.
value | : the first of three points to enter. |
Definition at line 348 of file cartesian_point.hpp.
|
inline |
Definition at line 362 of file cartesian_point.hpp.
|
inline |
Definition at line 419 of file cartesian_point.hpp.
|
inline |
Definition at line 352 of file cartesian_point.hpp.
|
inline |
Definition at line 357 of file cartesian_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 374 of file cartesian_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 383 of file cartesian_point.hpp.
|
inline |
Definition at line 431 of file cartesian_point.hpp.
|
inline |
Size/dimension of the cartesian point.
Size/dimension of the cartesian point.
Definition at line 392 of file cartesian_point.hpp.
|
inline |
Returns a copy of the x co-ordinate.
Definition at line 411 of file cartesian_point.hpp.
|
inline |
Returns a constant reference to the x co-ordinate.
Definition at line 399 of file cartesian_point.hpp.
|
inline |
Returns a copy of the y co-ordinate.
Definition at line 417 of file cartesian_point.hpp.
|
inline |
Returns a constant reference to the y co-ordinate.
Definition at line 405 of file cartesian_point.hpp.
|
friend |
Insertion operator for sending the array to an output stream. This is raw, and has no formatting.
ostream | : the output stream. |
point | : the point to be inserted. |
Definition at line 520 of file cartesian_point.hpp.
|
private |
Definition at line 504 of file cartesian_point.hpp.