top.hendrixshen.magiclib.api.compat.mojang.math.QuaternionCompat Maven / Gradle / Ivy
package top.hendrixshen.magiclib.api.compat.mojang.math;
import org.joml.Quaternionf;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.api.distmarker.OnlyIn;
import org.jetbrains.annotations.NotNull;
import top.hendrixshen.magiclib.impl.compat.mojang.math.QuaternionCompatImpl;
import top.hendrixshen.magiclib.util.collect.Provider;
@OnlyIn(Dist.CLIENT)
public interface QuaternionCompat extends Provider {
QuaternionCompat ONE = QuaternionCompat.of(new Quaternionf(0.0F, 0.0F, 0.0F, 1.0F));
static @NotNull QuaternionCompat of(@NotNull Quaternionf quaternion) {
return new QuaternionCompatImpl(quaternion);
}
void mul(float f);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy