Vec2Dclass template serves as a generic base class for other 2D vector types.
template <typename type> class Vec2D
||The type of each component of the vector.|
Vec2D(type a, type b);
||The value of the x coordinate.|
||The value of the y coordinate.|
Vec2Dclass template is used to store the x and y components of a two-dimensional vector. The type of the components is given by the
Objects of the
Vec2Dtype cannot be constructed directly. Vector objects are utilized by constructing objects having the subclass types
The default constructor leaves the components of the vector undefined. If the values
bare supplied, then they are assigned to the x and y coordinates of the vector, respectively.
||Returns a reference to the |
||Returns a constant reference to the |
||Returns a boolean value indicating the equality of the two vectors |
||Returns a boolean value indicating the inequality of the two vectors |