ALL 0.9.3
A Loadbalacing Library
|
#include <ALL_Point.hpp>
Public Member Functions | |
Point () | |
default constructor | |
Point (const int d) | |
Point (const int d, const T *data) | |
Point (const int d, const T *data, const T w) | |
Point (const int d, const T *data, const T w, const long i) | |
Point (const std::vector< T > &data) | |
Point (const std::vector< T > &data, const T w) | |
Point (const std::vector< T > &data, const T w, const long i) | |
~Point () | |
destructor | |
Point< T > | cross (const Point< T > &rhs) const |
T | d (Point< T > p) |
T | d_1 (Point< T > p) |
Point< T > | dist (Point< T > &p) |
T | dist_plane (const Point< T > &A, const Point< T > &B, const Point< T > &C) |
long | get_id () const |
int | getDimension () const |
T | getWeight () const |
bool | inTetrahedron (const Point< T > &A, const Point< T > &B, const Point< T > &C, const Point< T > &D) |
T | norm (T nd=2) |
T | operator* (const Point< T > &rhs) const |
Point< T > | operator* (const T &rhs) const |
Point< T > | operator+ (const Point< T > &rhs) const |
Point< T > | operator- (const Point< T > &rhs) const |
Point< T > | operator/ (const T &rhs) const |
T & | operator[] (const std::size_t idx) |
const T & | operator[] (const std::size_t idx) const |
bool | same_side_plane (const Point< T > &A, const Point< T > &B, const Point< T > &C, const Point< T > &P) |
void | set_id (const long i) |
void | set_weight (const T w) |
void | setDimension (const int d) |
T | floating point type used, has to be identical to the type used for the vertices and borders |
Definition at line 49 of file ALL_Point.hpp.
|
inline |
default constructor
Definition at line 52 of file ALL_Point.hpp.
|
inline |
constructor
d | dimension of the point object |
Definition at line 55 of file ALL_Point.hpp.
|
inline |
constructor with initialization
d | dimension of the point object |
data | positions |
Definition at line 62 of file ALL_Point.hpp.
|
inline |
constructor with initialization
data | positions, dimension is the size of the vector |
Definition at line 72 of file ALL_Point.hpp.
|
inline |
constructor with initialization
d | dimension of the point |
data | positions |
w | weight of the point |
Definition at line 83 of file ALL_Point.hpp.
|
inline |
constructor with initialization
d | dimension of the point |
data | positions |
w | weight of the point |
i | index of the point |
Definition at line 92 of file ALL_Point.hpp.
|
inline |
constructor with initialization
data | positions, dimension is the size of the vector |
w | weight of the point |
Definition at line 101 of file ALL_Point.hpp.
|
inline |
constructor with initialization
data | positions, dimension is the size of the vector |
w | weight of the point |
i | index of the point |
Definition at line 110 of file ALL_Point.hpp.
|
inline |
destructor
Definition at line 116 of file ALL_Point.hpp.
|
inline |
operator to compute the cross product between two point objects
rhs | point object to compute the cross product with |
Definition at line 305 of file ALL_Point.hpp.
|
inline |
method to compute the Euclidean distance (two-norm) between the local and the provided point object
p | the point object for which the distence to the local point object is computed |
Definition at line 174 of file ALL_Point.hpp.
|
inline |
method to compute the Manhatten / city-block distance (one-norm) between the local and the provided point object
p | the point object for which the distance to the local point object is computed |
Definition at line 186 of file ALL_Point.hpp.
|
inline |
method to compute the distance vector between the local point object and the provided point object
p | the point object for which the distance vector to the local point object is computed |
Definition at line 198 of file ALL_Point.hpp.
|
inline |
method to compute the distance of the local point object from a plane spanned by provided points
A | anchor point for the plane |
B | anchor point for the plane |
C | anchor point for the plane |
Definition at line 215 of file ALL_Point.hpp.
|
inline |
method to get the index of the point object
Definition at line 152 of file ALL_Point.hpp.
|
inline |
method to get the dimension of the point object
Definition at line 156 of file ALL_Point.hpp.
|
inline |
method to get the weight of the point object
Definition at line 148 of file ALL_Point.hpp.
|
inline |
method to check if the local point object is inside a tetrahedron described by the vertices A,B,C and D
A | vertex A |
B | vertex B |
C | vertex C |
D | vertex D |
for all surfaces of the tetrahedron check if the local point has the same orientation as the remaining vertex of the tetrahedron, to be inside the tetrahedron that must be fulfilled
Definition at line 354 of file ALL_Point.hpp.
|
inline |
method to compute the norm of the vector described by the point object
nd | type of the norm (default: 2, i.e. the Euclidean norm) |
Definition at line 162 of file ALL_Point.hpp.
|
inline |
operator to compute the dot product between two point objects
rhs | point object to compute the dot product with |
Definition at line 268 of file ALL_Point.hpp.
|
inline |
operator to scale the local point object by a provided factor
rhs | scaling factor |
Definition at line 282 of file ALL_Point.hpp.
|
inline |
operator for the addition of two point objects
rhs | point to add the local point object to |
Definition at line 239 of file ALL_Point.hpp.
|
inline |
operator for the addition of two point objects
rhs | point to subtract from the local point object |
Definition at line 254 of file ALL_Point.hpp.
|
inline |
operator to scale the local point object by a provided factor
rhs | scaling factor |
Definition at line 293 of file ALL_Point.hpp.
|
inline |
access operator to access an element of the point object
idx | the index of the element to be accessed |
Definition at line 137 of file ALL_Point.hpp.
|
inline |
access operator to access an element of the constant point object
idx | the index of the element to be accessed |
Definition at line 142 of file ALL_Point.hpp.
|
inline |
method to determine if the local point object has the same orientation to a plane spanned by point objects A,B,C as the provided point P
A | anchor point A |
B | anchor point B |
C | anchor point C |
P | reference point P |
Definition at line 326 of file ALL_Point.hpp.
|
inline |
method to change the index of the particle
i | new index |
Definition at line 132 of file ALL_Point.hpp.
|
inline |
method to change the weight of the point object
w | new weight |
Definition at line 128 of file ALL_Point.hpp.
|
inline |
method to change the dimension of the point object
d | new dimension |
Definition at line 121 of file ALL_Point.hpp.