target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java
public Complexf toComplex() {
        final float w2 = w * w;
        return new Complexf(2 * w2 - 1, 2 * w * (float) Math.sqrt(1 - w2));
    }
public Complexf toComplex() {
        final float w2 = w * w;
        return new Complexf(2 * w2 - 1, 2 * w * (float) Math.sqrt(1 - w2));
    }
Converts this quaternion to a complex by extracting the rotation around
the axis and returning it as a rotation in the plane perpendicular to the
rotation axis.

@return The rotation without the axis as a complex