dot(vector) {
        return this._x * vector.x + this._y * vector.y + this._z * vector.z;
    }
Calculates the dot product of 2 vectors

     returns:
     @dotProduct (float): dot product of the 2 vectors
*