Package net.minecraft.util.math
Class Vector4f
java.lang.Object
net.minecraft.util.math.Vector4f
- Implementation Note:
- Even though this is used only on the client, it accesses protected
fields from
Matrix4f, which requires them to be in the same package. - Mappings:
Namespace Name official lintermediary net/minecraft/class_1162named net/minecraft/util/math/Vector4f
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(float x, float y, float z, float w) floatdotProduct(Vector4f other) booleanfloatgetW()floatgetX()floatgetY()floatgetZ()inthashCode()voidvoidmultiply(float value) voidmultiplyComponentwise(Vec3f vector) booleanvoidvoidrotate(Quaternion rotation) voidset(float x, float y, float z, float w) toString()void
-
Field Details
-
x
private float x- Mappings:
Namespace Name Mixin selector official aLl;a:Fintermediary field_21486Lnet/minecraft/class_1162;field_21486:Fnamed xLnet/minecraft/util/math/Vector4f;x:F
-
y
private float y- Mappings:
Namespace Name Mixin selector official bLl;b:Fintermediary field_21487Lnet/minecraft/class_1162;field_21487:Fnamed yLnet/minecraft/util/math/Vector4f;y:F
-
z
private float z- Mappings:
Namespace Name Mixin selector official cLl;c:Fintermediary field_21488Lnet/minecraft/class_1162;field_21488:Fnamed zLnet/minecraft/util/math/Vector4f;z:F
-
w
private float w- Mappings:
Namespace Name Mixin selector official dLl;d:Fintermediary field_21489Lnet/minecraft/class_1162;field_21489:Fnamed wLnet/minecraft/util/math/Vector4f;w:F
-
-
Constructor Details
-
Vector4f
public Vector4f() -
Vector4f
public Vector4f(float x, float y, float z, float w) - Mappings:
Namespace Name Mixin selector official <init>Ll;<init>(FFFF)Vintermediary <init>Lnet/minecraft/class_1162;<init>(FFFF)Vnamed <init>Lnet/minecraft/util/math/Vector4f;<init>(FFFF)V
-
Vector4f
- Mappings:
Namespace Name Mixin selector official <init>Ll;<init>(Lk;)Vintermediary <init>Lnet/minecraft/class_1162;<init>(Lnet/minecraft/class_1160;)Vnamed <init>Lnet/minecraft/util/math/Vector4f;<init>(Lnet/minecraft/util/math/Vec3f;)V
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getX
public float getX()- Mappings:
Namespace Name Mixin selector official aLl;a()Fintermediary method_4953Lnet/minecraft/class_1162;method_4953()Fnamed getXLnet/minecraft/util/math/Vector4f;getX()F
-
getY
public float getY()- Mappings:
Namespace Name Mixin selector official bLl;b()Fintermediary method_4956Lnet/minecraft/class_1162;method_4956()Fnamed getYLnet/minecraft/util/math/Vector4f;getY()F
-
getZ
public float getZ()- Mappings:
Namespace Name Mixin selector official cLl;c()Fintermediary method_4957Lnet/minecraft/class_1162;method_4957()Fnamed getZLnet/minecraft/util/math/Vector4f;getZ()F
-
getW
public float getW()- Mappings:
Namespace Name Mixin selector official dLl;d()Fintermediary method_23853Lnet/minecraft/class_1162;method_23853()Fnamed getWLnet/minecraft/util/math/Vector4f;getW()F
-
multiply
public void multiply(float value) - Mappings:
Namespace Name Mixin selector official aLl;a(F)Vintermediary method_35927Lnet/minecraft/class_1162;method_35927(F)Vnamed multiplyLnet/minecraft/util/math/Vector4f;multiply(F)V
-
multiplyComponentwise
- Mappings:
Namespace Name Mixin selector official aLl;a(Lk;)Vintermediary method_4954Lnet/minecraft/class_1162;method_4954(Lnet/minecraft/class_1160;)Vnamed multiplyComponentwiseLnet/minecraft/util/math/Vector4f;multiplyComponentwise(Lnet/minecraft/util/math/Vec3f;)V
-
set
public void set(float x, float y, float z, float w) - Mappings:
Namespace Name Mixin selector official aLl;a(FFFF)Vintermediary method_23851Lnet/minecraft/class_1162;method_23851(FFFF)Vnamed setLnet/minecraft/util/math/Vector4f;set(FFFF)V
-
add
public void add(float x, float y, float z, float w) - Mappings:
Namespace Name Mixin selector official bLl;b(FFFF)Vintermediary method_35929Lnet/minecraft/class_1162;method_35929(FFFF)Vnamed addLnet/minecraft/util/math/Vector4f;add(FFFF)V
-
dotProduct
- Mappings:
Namespace Name Mixin selector official aLl;a(Ll;)Fintermediary method_23217Lnet/minecraft/class_1162;method_23217(Lnet/minecraft/class_1162;)Fnamed dotProductLnet/minecraft/util/math/Vector4f;dotProduct(Lnet/minecraft/util/math/Vector4f;)F
-
normalize
public boolean normalize()- Mappings:
Namespace Name Mixin selector official eLl;e()Zintermediary method_23218Lnet/minecraft/class_1162;method_23218()Znamed normalizeLnet/minecraft/util/math/Vector4f;normalize()Z
-
transform
- Mappings:
Namespace Name Mixin selector official aLl;a(Ld;)Vintermediary method_22674Lnet/minecraft/class_1162;method_22674(Lnet/minecraft/class_1159;)Vnamed transformLnet/minecraft/util/math/Vector4f;transform(Lnet/minecraft/util/math/Matrix4f;)V
-
rotate
- Mappings:
Namespace Name Mixin selector official aLl;a(Lg;)Vintermediary method_23852Lnet/minecraft/class_1162;method_23852(Lnet/minecraft/class_1158;)Vnamed rotateLnet/minecraft/util/math/Vector4f;rotate(Lnet/minecraft/util/math/Quaternion;)V
-
normalizeProjectiveCoordinates
public void normalizeProjectiveCoordinates()- Mappings:
Namespace Name Mixin selector official fLl;f()Vintermediary method_23219Lnet/minecraft/class_1162;method_23219()Vnamed normalizeProjectiveCoordinatesLnet/minecraft/util/math/Vector4f;normalizeProjectiveCoordinates()V
-
lerp
- Mappings:
Namespace Name Mixin selector official aLl;a(Ll;F)Vintermediary method_35928Lnet/minecraft/class_1162;method_35928(Lnet/minecraft/class_1162;F)Vnamed lerpLnet/minecraft/util/math/Vector4f;lerp(Lnet/minecraft/util/math/Vector4f;F)V
-
toString
-