类 VectorUtils
java.lang.Object
committee.nova.mods.avaritia.api.client.util.VectorUtils
Created by covers1624 on 4/10/2016.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static net.minecraft.core.DirectioncalcNormalSide(Vector3 normal) Calculates the EnumFacing for a given normal.static Vector3calculateNormal(Vector3... vertices) Calculates a normal for the given vertices.static intCalculates the int direction a normal is facing.
-
构造器详细资料
-
VectorUtils
public VectorUtils()
-
-
方法详细资料
-
calculateNormal
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
Calculates the int direction a normal is facing.- 参数:
normal- The normal to calculate from.- 返回:
- The direction the normal is facing.
-
calcNormalSide
Calculates the EnumFacing for a given normal.- 参数:
normal- The normal to calculate from.- 返回:
- The direction the normal is facing.
-