java.lang.Object
committee.nova.mods.avaritia.api.client.util.VectorUtils

public class VectorUtils extends Object
Created by covers1624 on 4/10/2016.
  • 构造器详细资料

    • VectorUtils

      public VectorUtils()
  • 方法详细资料

    • calculateNormal

      public static Vector3 calculateNormal(Vector3... vertices)
      Calculates a normal for the given vertices.
      参数:
      vertices - The vertices to calculate a normal for, Expected to be a length of 3.
      返回:
      The normal.
    • findSide

      public static int findSide(Vector3 normal)
      Calculates the int direction a normal is facing.
      参数:
      normal - The normal to calculate from.
      返回:
      The direction the normal is facing.
    • calcNormalSide

      public static net.minecraft.core.Direction calcNormalSide(Vector3 normal)
      Calculates the EnumFacing for a given normal.
      参数:
      normal - The normal to calculate from.
      返回:
      The direction the normal is facing.