public Vector3f cross(float otherX, float otherY, float otherZ, Vector3f result) {
        if (result == null) {
            result = new Vector3f();
        }
        float resX = ((y * otherZ) - (z * otherY));
        float resY = ((z * otherX) - (x * otherZ));
        float resZ = ((x * otherY) - (y * otherX));
        result.set(resX, resY, resZ);
        return result;
    }
Calculates a cross product with specified components and returns the
product in the specified vector. The current instance is unaffected
unless it's {@code result}.

@param otherX the X component of the right factor
@param otherY the Y component of the right factor
@param otherZ the Z component of the right factor
@param result storage for the product, or null for a new Vector3f
@return {@code this} cross (X,Y,Z) (either {@code result} or a new
    Vector3f)
jme3-core/src/main/java/com/jme3/math/Vector3f.java