88 return std::sqrt( (this->x * this->x) + (this->y * this->y) );
138 return this->x * that.
x + this->y * that.
y;
T value_type
The type of the values we store.
self_type get_orthonormal_anticlockwise() const
Get a vector orthonormal to this vector.
value_type dot_product(const self_type &vect) const
Dot product.
Coordinates in a two dimensional space.
void normalize()
Normalize the vector.
T value_type
The type of the values we store.
value_type y
Y-coordinate.
self_type get_orthonormal_clockwise() const
Get a vector orthonormal to this vector.
value_type length() const
Gets vector length.
value_type x
X-coordinate.