List of all members.
Public Types
-
typedef Vector< double, 2 > Base_t
Public Member Functions
- vector inv () const
- Compute the dual of this vector.
-
vector operator+ (const vector &r) const
-
vector operator- (const vector &r) const
-
vector operator- () const
- Unary minus.
-
vector unit () const
-
vector (const vector &v)
-
vector (double x, double y)
-
template<char CompType> vector (const vector &l, const vector &r, const ComputationType< CompType > &C)
-
template<char CompType> vector (const vector &l, const double &scalar, const ComputationType< CompType > &C)
-
template<char CompType> vector (const double &scalar, const vector &l, const ComputationType< CompType > &C)
-
vector (const vector &l, const ComputationType<'-'> &C)
-
const double & x () const
-
double & x ()
-
const double & y () const
-
double & y ()
Friends
-
double dot (const vector &a, const vector &b)
- Compute the Euclidean dot product (inner product) of two vectors.
-
double norm (const vector &v)
- Compute the Euclidan norm of a vector. Note that if just the square of the norm is required, then function norm2() is more efficient since the square root does not need to be taken.
-
double norm2 (const vector &v)
- Compute the squared norm of a vector v, i.e. v.v.
-
vector operator* (const vector &v, double scalar)
-
vector operator* (double scalar, const vector &v)
- Multiply scalar with a vector, yielding a vector.
-
vector operator/ (const vector &v, double scalar)
- Divide a vector by a scalar.
-
std::ostream & operator<< (std::ostream &os, const vector &v)
Member Function Documentation
vector Eagle::Plane::vector::inv |
( |
| ) |
const [inline] |
Compute the dual of this vector.
Compute the inverse vector
The documentation for this class was generated from the following file: