public static boolean equalsEpsilon(Quaternion q1, Quaternion q2) {
        return (FastMath.abs(q1.getX() - q2.getX()) < EPSILON
                && FastMath.abs(q1.getY() - q2.getY()) < EPSILON
                && FastMath.abs(q1.getZ() - q2.getZ()) < EPSILON
                && FastMath.abs(q1.getW() - q2.getW()) < EPSILON)
                ||
 (FastMath.abs(q1.getX() + q2.getX()) < EPSILON
                && FastMath.abs(q1.getY() + q2.getY()) < EPSILON
                && FastMath.abs(q1.getZ() + q2.getZ()) < EPSILON
                && FastMath.abs(q1.getW() + q2.getW()) < EPSILON);
    }
Parse a json input stream and returns a {@link JsonObject}
@param stream the stream to parse
@return the JsonObject
jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfUtils.java