Class GeometryUtil

java.lang.Object
com.binaris.wizardry.api.content.util.GeometryUtil

public final class GeometryUtil extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    component(net.minecraft.world.phys.Vec3 vec, net.minecraft.core.Direction.Axis axis)
     
    static net.minecraft.world.phys.Vec3
    getCentre(net.minecraft.core.BlockPos pos)
     
    static net.minecraft.world.phys.Vec3
    getFaceCentre(net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face)
     
    static float
    getPitch(net.minecraft.core.Direction facing)
     
    static net.minecraft.world.phys.Vec3[]
    getVertices(net.minecraft.world.phys.AABB box)
     
    static net.minecraft.world.phys.Vec3
    horizontalise(net.minecraft.world.phys.Vec3 vec)
     
    static net.minecraft.world.phys.Vec3
    replaceComponent(net.minecraft.world.phys.Vec3 vec, net.minecraft.core.Direction.Axis axis, double newValue)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)