Class GeometryUtil
java.lang.Object
com.binaris.wizardry.api.content.util.GeometryUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic doublecomponent(net.minecraft.world.phys.Vec3 vec, net.minecraft.core.Direction.Axis axis) static net.minecraft.world.phys.Vec3getCentre(net.minecraft.core.BlockPos pos) static net.minecraft.world.phys.Vec3getFaceCentre(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face) static floatgetPitch(net.minecraft.core.Direction facing) static net.minecraft.world.phys.Vec3[]getVertices(net.minecraft.world.phys.AABB box) static net.minecraft.world.phys.Vec3horizontalise(net.minecraft.world.phys.Vec3 vec) static net.minecraft.world.phys.Vec3replaceComponent(net.minecraft.world.phys.Vec3 vec, net.minecraft.core.Direction.Axis axis, double newValue)
-
Field Details
-
ANTI_Z_FIGHTING_OFFSET
public static final double ANTI_Z_FIGHTING_OFFSET- See Also:
-
-
Method Details
-
component
public static double component(net.minecraft.world.phys.Vec3 vec, net.minecraft.core.Direction.Axis axis) -
getCentre
public static net.minecraft.world.phys.Vec3 getCentre(net.minecraft.core.BlockPos pos) -
horizontalise
public static net.minecraft.world.phys.Vec3 horizontalise(net.minecraft.world.phys.Vec3 vec) -
replaceComponent
public static net.minecraft.world.phys.Vec3 replaceComponent(net.minecraft.world.phys.Vec3 vec, net.minecraft.core.Direction.Axis axis, double newValue) -
getFaceCentre
public static net.minecraft.world.phys.Vec3 getFaceCentre(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face) -
getPitch
public static float getPitch(net.minecraft.core.Direction facing) -
getVertices
public static net.minecraft.world.phys.Vec3[] getVertices(net.minecraft.world.phys.AABB box)
-