24 #ifndef R_DOUBLEPOINT_HH
25 #define R_DOUBLEPOINT_HH
129 std::vector<double> points;
Class r_PointDouble represents an n-dimensional point of double coordinates.
Definition: pointdouble.hh:45
r_PointDouble(const r_PointDouble &vectorArg)
copy constructor
r_Dimension dimension() const
same as std::vector::size()
const r_PointDouble & operator=(const r_PointDouble &)
assignment: cleanup + copy
r_PointDouble operator*(double scalarArg) const
scalar multiplication
bool operator==(const r_PointDouble &vectorArg) const
Returns 0 if this == p, -1 if this < p, 1 if this > p (considering the coordinates in lexicographic o...
const std::vector< double > & getVectorContent() const
returns the stored vector
r_PointDouble(r_Dimension dim, double value)
double & operator[](size_t)
subscriptor for write access
r_PointDouble operator*(const r_PointDouble &vectorArg) const
diagonal extension of multiplication across the cartesian product
r_Point toIntPoint() const
converts the stored vector to an r_Point (integer vertices)
bool operator<(const r_PointDouble &vectorArg) const
r_PointDouble & operator*=(const r_PointDouble &a) noexcept(false)
r_PointDouble & operator*=(double a) noexcept
r_PointDouble(const r_Point &pt)
r_PointDouble operator+(const r_PointDouble &vectorArg) const
Two points are equal if they have the same number of dimensions and the same values.
bool operator!=(const r_PointDouble &vectorArg) const
r_PointDouble & operator+=(const r_PointDouble &a) noexcept(false)
Same as above but of the form PointA op= PointB; PointA is modified in place.
int compare_with(const r_PointDouble &p) const
compares this point with the given point.
r_PointDouble(const std::vector< double > &content)
double dotProduct(const r_PointDouble &r) const
scalar product
r_PointDouble operator-(const r_PointDouble &vectorArg) const
std::vector subtraction
~r_PointDouble()
destructor: cleanup dynamic memory
double operator[](size_t) const
subscriptor for read access
void print_status(std::ostream &s) const
writes the state of the object to the specified stream
r_PointDouble & operator-=(const r_PointDouble &a) noexcept(false)
r_PointDouble(r_Dimension)
constructor getting dimensionality for stream initializing
Class r_Point represents an n-dimensional point vector.
Definition: point.hh:43
std::uint32_t r_Dimension
number of dimensions in r_Point and r_Minterval.
Definition: mddtypes.hh:56