Class Vector
Defined in File Vector.hpp
Inheritance Relationships
Base Type
public Point(Class Point)
Class Documentation
-
class Vector : public Point
Represents a vector in 2D space, inherits from the Point class. It provides all basic functions with vectors in 2D.
Public Functions
-
Vector(const Point &a, const Point &b)
Construct a new Vector object from two Point(s).
- Parameters:
a – [in]
b – [in]
-
Vector(const double &x, const double &y)
Construct a new Vector object from the two coordinates.
- Parameters:
x – [in]
y – [in]
-
inline double dot(const Vector &v) const
Returns the dot product between the implicit Vector and v.
- Parameters:
v – [in]
-
Vector(const Point &a, const Point &b)