SLIP
1.4
|
This is a point3d class, a specialized version of Point<CoordType,DIM> with DIM = 3. More...
#include <DenseVector3dField3d.hpp>
Public Types | |
typedef Point3d< CoordType > | self |
typedef Point< CoordType, 3 > | base |
typedef CoordType | value_type |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef DPoint< CoordType, DIM > | dpoint_type |
typedef std::random_access_iterator_tag | iterator_category |
Public Member Functions | |
std::string | name () const |
Returns the name of the class. More... | |
self | operator- () const |
negate all the coordinates of a Point More... | |
std::size_t | dim () const |
Returns the dimension of the Point. More... | |
std::size_t | size () const |
Returns the dimension of the Point. More... | |
std::size_t | max_size () const |
Returns the maximal size of the Point. More... | |
bool | empty () const |
Returns true if dimension of the Point is 0. More... | |
const block< value_type, DIM > & | coord () const |
Return the coordinates of the Point. More... | |
block< value_type, DIM > & | coord () |
Return the coordinates of the Point. More... | |
void | swap (self &other) |
Swaps two Point. More... | |
Constructors & Destructors | |
Point3d () | |
Constructs a Point3d. More... | |
Point3d (const CoordType *array) | |
Constructs a Point from a CoordType array. More... | |
Point3d (const CoordType &x1, const CoordType &x2, const CoordType &x3) | |
Constructs a Point3d. More... | |
Element access operators | |
void | x1 (const CoordType &x) |
Accessor of the first coordinate of Point3d. More... | |
CoordType & | x1 () |
Accessor/Mutator of the first coordinate of Point3d. More... | |
const CoordType & | x1 () const |
Accessor/Mutator of the first coordinate of Point3d. More... | |
void | x2 (const CoordType &x) |
Accessor of the second coordinate of Point3d. More... | |
CoordType & | x2 () |
Accessor/Mutator of the second coordinate of Point3d. More... | |
const CoordType & | x2 () const |
Accessor/Mutator of the first coordinate of Point3d. More... | |
void | x3 (const CoordType &x) |
Accessor of the third coordinate of Point3d. More... | |
CoordType & | x3 () |
Accessor/Mutator of the second coordinate of Point3d. More... | |
const CoordType & | x3 () const |
Accessor/Mutator of the first coordinate of Point3d. More... | |
Element access operators | |
reference | operator[] (const std::size_t i) |
Returns the i'th coordinate of the Point. More... | |
const_reference | operator[] (const std::size_t i) const |
Returns the i'th row of the Point. More... | |
Comparison operators | |
bool | operator== (const self &other) const |
compare two Point. More... | |
bool | operator!= (const self &other) const |
compare two Point. More... | |
Arithmetic operators | |
self | operator- (const dpoint_type &dp) const |
translate a point considering the deplacement a dp More... | |
dpoint_type | operator- (const self &other) const |
compute the difference between two points More... | |
self & | operator+= (const dpoint_type &dp) |
Assign a Point to this point plus a deplacement. More... | |
self | operator+ (const dpoint_type &dp) const |
translate a point considering the deplacement a dp More... | |
self & | operator-= (const dpoint_type &dp) |
Assign a Point to this point minus a deplacement. More... | |
Static Public Attributes | |
static const std::size_t | SIZE |
Protected Attributes | |
block< value_type, DIM > | coord_ |
The coordinates of the point are stored in this block. More... | |
Friends | |
class | boost::serialization::access |
This is a point3d class, a specialized version of Point<CoordType,DIM> with DIM = 3.
CoordType | Type of the coordinates of the Point3d |
Definition at line 125 of file DenseVector3dField3d.hpp.
typedef Point<CoordType,3> slip::Point3d< T >::base |
Definition at line 102 of file Point3d.hpp.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
typedef Point3d<CoordType> slip::Point3d< T >::self |
Definition at line 101 of file Point3d.hpp.
|
inherited |
|
inline |
Constructs a Point3d.
Definition at line 233 of file Point3d.hpp.
|
inline |
Constructs a Point from a CoordType array.
array |
Definition at line 242 of file Point3d.hpp.
|
inline |
|
inherited |
Return the coordinates of the Point.
|
inherited |
Return the coordinates of the Point.
|
inherited |
Returns the dimension of the Point.
|
inherited |
Returns true if dimension of the Point is 0.
|
inherited |
Returns the maximal size of the Point.
|
inline |
Returns the name of the class.
Definition at line 298 of file Point3d.hpp.
|
inherited |
compare two Point.
other | Point to compare |
|
inherited |
translate a point considering the deplacement a dp
dp | deplacement |
|
inherited |
Assign a Point to this point plus a deplacement.
dp | deplacement |
|
inherited |
negate all the coordinates of a Point
|
inherited |
translate a point considering the deplacement a dp
dp | deplacement |
|
inherited |
compute the difference between two points
other | Point |
|
inherited |
Assign a Point to this point minus a deplacement.
dp | deplacement |
|
inherited |
compare two Point.
other | Point to compare |
|
inherited |
Returns the i'th coordinate of the Point.
i | index of the coordinate to return |
|
inherited |
Returns the i'th row of the Point.
i | index of the coordinate to return |
|
inherited |
Returns the dimension of the Point.
|
inherited |
Swaps two Point.
other | Point to swap with |
|
inline |
Accessor of the first coordinate of Point3d.
x | the first coordinate of the Point3d |
Definition at line 285 of file Point3d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of Point3d.
Definition at line 260 of file Point3d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of Point3d.
Definition at line 264 of file Point3d.hpp.
|
inline |
Accessor of the second coordinate of Point3d.
x | the second coordinate of the Point3d |
Definition at line 289 of file Point3d.hpp.
|
inline |
Accessor/Mutator of the second coordinate of Point3d.
Definition at line 268 of file Point3d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of Point3d.
Definition at line 272 of file Point3d.hpp.
|
inline |
Accessor of the third coordinate of Point3d.
x | the third coordinate of the Point3d |
Definition at line 293 of file Point3d.hpp.
|
inline |
Accessor/Mutator of the second coordinate of Point3d.
Definition at line 277 of file Point3d.hpp.
|
inline |
Accessor/Mutator of the first coordinate of Point3d.
Definition at line 281 of file Point3d.hpp.
|
friend |
Definition at line 194 of file Point3d.hpp.
|
protectedinherited |
|
staticinherited |