public Vector3f getDirection() {
        return direction;
    }
<code>getDirection</code> retrieves the direction vector of the ray.

@return the direction of the ray.
jme3-core/src/main/java/com/jme3/math/Ray.java