|
V3R | getPositiveVector () const |
| Returns a V3R with absolute components. More...
|
|
| operator Kernel::V3D () const |
| Returns an instance of Kernel::V3D with floating point approximations of the components. More...
|
|
| operator std::vector< double > () const |
| Returns an std::vector<double> with approximations of the components. More...
|
|
bool | operator!= (const V3R &other) const |
| Returns true if the compared vectors are not equal. More...
|
|
bool | operator!= (int other) const |
| Returns true if any component is different from the integer. More...
|
|
V3R | operator* (const RationalNumber &other) const |
| Performs the operation v' = v1 * r, which multiplies each component of v1 with the RationalNumber r. More...
|
|
V3R | operator* (int other) const |
| Performs the operation v' = v1 * i, which multiplies each component of v1 with the integer i. More...
|
|
V3R & | operator*= (const RationalNumber &other) |
| Performs the operation v1 *= r in place, which multiplies each component of v1 with the RationalNumber r. More...
|
|
V3R & | operator*= (int other) |
| Performs the operation v1 *= i in place, which multiplies each component of v1 with the integer i. More...
|
|
Kernel::V3D | operator+ (const Kernel::V3D &other) const |
| Returns the result of the operation d3' = r3 + d3, which is again a Kernel::V3D. More...
|
|
V3R | operator+ (const RationalNumber &other) const |
| Performs the operation v' = v1 + r, which adds the RationalNumber r to each component of v1. More...
|
|
V3R | operator+ (const V3R &other) const |
| Performs the operation v1 + v2, which sums the vectors component-wise. More...
|
|
V3R | operator+ (int other) const |
| Performs the operation v' = v1 + i, which adds the integer i to each component of v1. More...
|
|
V3R & | operator+= (const RationalNumber &other) |
| Performs the operation v1 += r in place, which adds the RationalNumber r to each component of v1. More...
|
|
V3R & | operator+= (const V3R &other) |
| Performs the operation v1 += v2 in place, which adds the components of v2 to the components of v1. More...
|
|
V3R & | operator+= (int other) |
| Performs the operation v1 += i in place, which adds the integer i to each component of v1. More...
|
|
V3R | operator- () const |
| Negates all components of the vector. More...
|
|
Kernel::V3D | operator- (const Kernel::V3D &other) const |
| Returns the result of the operation d3' = r3 - d3, which is again a Kernel::V3D. More...
|
|
V3R | operator- (const RationalNumber &other) const |
| Performs the operation v' = v1 - r, which subtracts the RationalNumber r from each component of v1. More...
|
|
V3R | operator- (const V3R &other) const |
| Performs the operation v1 - v2, which subtracts the vectors component-wise. More...
|
|
V3R | operator- (int other) const |
| Performs the operation v' = v1 - i, which subtracts the integer i from each component of v1. More...
|
|
V3R & | operator-= (const RationalNumber &other) |
| Performs the operation v1 -= r, which subtracts the RationalNumber r from each component of v1. More...
|
|
V3R & | operator-= (const V3R &other) |
| Performs the operation v1 -= v2 in place, which subtracts the components of v2 from the components of v1. More...
|
|
V3R & | operator-= (int other) |
| Performs the operation v1 -= i in place, which subtracts the integer i from each component of v1. More...
|
|
V3R | operator/ (const RationalNumber &other) const |
| Performs the operation v' = v1 / r, which divides each component of v1 by the RationalNumber r. More...
|
|
V3R | operator/ (int other) const |
| Performs the operation v' = v1 / i, which divides each component of v1 by the integer i. More...
|
|
V3R & | operator/= (const RationalNumber &other) |
| Performs the operation v1 /= r in place, which divides each component of v1 by the RationalNumber r. More...
|
|
V3R & | operator/= (int other) |
| Performs the operation v1 /= i in place, which divides each component of v1 by the integer i. More...
|
|
bool | operator< (const V3R &other) const |
| Compares x of both vectors first, if those are equal the function compares y and finally z. More...
|
|
bool | operator== (const V3R &other) const |
| Returns true if all components of the compared vectors are equal, false otherwise. More...
|
|
bool | operator== (int other) const |
| Returns true if all components are equal to the integer used for comparison. More...
|
|
RationalNumber & | operator[] (size_t index) |
| Array-style non-const access to the components. More...
|
|
const RationalNumber & | operator[] (size_t index) const |
| Array-style const access to the components. More...
|
|
void | setX (const RationalNumber &newX) |
| Assigns a new value to the x-component. More...
|
|
void | setY (const RationalNumber &newY) |
| Assigns a new value to the y-component. More...
|
|
void | setZ (const RationalNumber &newZ) |
| Assigns a new value to the z-component. More...
|
|
| V3R () |
| Default constructor, all elements 0. More...
|
|
| V3R (const RationalNumber &x, const RationalNumber &y, const RationalNumber &z) |
| Constructor from three RationalNumbers, which may also be integers. More...
|
|
| V3R (const std::vector< int > &vector) |
| Constructor from an appropriately sized integer vector. More...
|
|
const RationalNumber & | x () const |
| Returns the x-component of the vector. More...
|
|
const RationalNumber & | y () const |
| Returns the y-component of the vector. More...
|
|
const RationalNumber & | z () const |
| Returns the z-component of the vector. More...
|
|
Definition at line 37 of file V3R.h.