类 Rotation
java.lang.Object
committee.nova.mods.avaritia.api.util.vec.ITransformation<Vector3,Transformation>
committee.nova.mods.avaritia.api.util.vec.Transformation
committee.nova.mods.avaritia.api.util.vec.Rotation
- 所有已实现的接口:
IVertexOperation,Copyable<Transformation>
-
嵌套类概要
从接口继承的嵌套类/接口 committee.nova.mods.avaritia.api.client.render.pipeline.IVertexOperation
IVertexOperation.VertexOperationRegistry -
字段概要
字段修饰符和类型字段说明doublestatic Vector3[]static Transformation[]Clockwise pi/2 about y looking downstatic int[]static Transformation[]static int[]static int[]Rotate pi/2 * this offset for [side] about y axis before rotating to the side for the rotation indicies to line up从类继承的字段 committee.nova.mods.avaritia.api.util.vec.Transformation
operationIndex -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidApplies this transformation to a matrix as a multiplication on the right hand side.voidApplies this transformation to vecvoidApplies this transformation to a normal (doesn't translate)copy()static intgetSidedRotation(net.minecraft.world.entity.player.Player player, int side) static intgetSideFromLookAngle(net.minecraft.world.entity.LivingEntity entity) inverse()Attempts to invert the Transformation.booleanReturns true if this transformation is redundant, eg.merge(Transformation next) Returns a simplified transformation that performs this, followed by next.static introtateSide(int s, int r) static introtationTo(int s1, int s2) Reverse of rotateSidestatic TransformationsideOrientation(int s, int r) toQuat()toString()从类继承的方法 committee.nova.mods.avaritia.api.util.vec.Transformation
at, load, operate, operationID, with从类继承的方法 committee.nova.mods.avaritia.api.util.vec.ITransformation
$plus$plus
-
字段详细资料
-
axes
-
quarterRotations
Clockwise pi/2 about y looking down -
sideRotMap
public static int[] sideRotMap -
sideRotations
-
rotSideMap
public static int[] rotSideMap -
sideRotOffsets
public static int[] sideRotOffsetsRotate pi/2 * this offset for [side] about y axis before rotating to the side for the rotation indicies to line up -
angle
public double angle -
axis
-
-
构造器详细资料
-
Rotation
-
Rotation
public Rotation(double angle, double x, double y, double z) -
Rotation
-
Rotation
-
-
方法详细资料
-
rotateSide
public static int rotateSide(int s, int r) -
rotationTo
public static int rotationTo(int s1, int s2) Reverse of rotateSide -
getSidedRotation
public static int getSidedRotation(net.minecraft.world.entity.player.Player player, int side) - 参数:
player- The placing player, used for obtaining the look vectorside- The side of the block being placed on- 返回:
- The rotation for the face == side^1
-
sideOrientation
- 返回:
- The rotation quat for side 0 and rotation 0 to side s with rotation r
-
getSideFromLookAngle
public static int getSideFromLookAngle(net.minecraft.world.entity.LivingEntity entity) - 参数:
entity- The placing entity, used for obtaining the look vector- 返回:
- The side towards which the entity is most directly looking.
-
apply
从类复制的说明:ITransformationApplies this transformation to vec- 指定者:
apply在类中ITransformation<Vector3,Transformation>
-
applyN
从类复制的说明:TransformationApplies this transformation to a normal (doesn't translate)- 指定者:
applyN在类中Transformation- 参数:
normal- The normal to transform
-
apply
从类复制的说明:TransformationApplies this transformation to a matrix as a multiplication on the right hand side.- 指定者:
apply在类中Transformation- 参数:
mat- The matrix to combine this transformation with
-
toQuat
-
inverse
从类复制的说明:ITransformationAttempts to invert the Transformation.The transformations inverse may be itself, or the transform may not have an inverse. In that case a
IrreversibleTransformationExceptionis thrown.- 指定者:
inverse在类中ITransformation<Vector3,Transformation> - 返回:
- The inverse transform.
-
merge
从类复制的说明:ITransformationReturns a simplified transformation that performs this, followed by next. If such a transformation does not exist, returns null- 覆盖:
merge在类中ITransformation<Vector3,Transformation>
-
isRedundant
public boolean isRedundant()从类复制的说明:ITransformationReturns true if this transformation is redundant, eg. Scale(1, 1, 1), Translation(0, 0, 0) or Rotation(0, a, b, c)- 覆盖:
isRedundant在类中ITransformation<Vector3,Transformation>
-
toString
-
copy
-