Vec3Dclass template serves as a generic base class for other 3D vector types.
template <typename type> class Vec3D
||The type of each component of the vector.|
Vec3D(type a, type b, type c);
||The value of the x coordinate.|
||The value of the y coordinate.|
||The value of the z coordinate.|
Vec3Dclass template is used to store the x, y, and z components of a three-dimensional vector. The type of the components is given by the
Objects of the
Vec3Dtype 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
care supplied, then they are assigned to the x, y, and z 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 |