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 l
intermediary net/minecraft/class_1162
named net/minecraft/util/math/Vector4f
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(float x, float y, float z, float w) float
dotProduct
(Vector4f other) boolean
float
getW()
float
getX()
float
getY()
float
getZ()
int
hashCode()
void
void
multiply
(float value) void
multiplyComponentwise
(Vec3f vector) boolean
void
void
rotate
(Quaternion rotation) void
set
(float x, float y, float z, float w) toString()
void
-
Field Details
-
x
private float x- Mappings:
Namespace Name Mixin selector official a
Ll;a:F
intermediary field_21486
Lnet/minecraft/class_1162;field_21486:F
named x
Lnet/minecraft/util/math/Vector4f;x:F
-
y
private float y- Mappings:
Namespace Name Mixin selector official b
Ll;b:F
intermediary field_21487
Lnet/minecraft/class_1162;field_21487:F
named y
Lnet/minecraft/util/math/Vector4f;y:F
-
z
private float z- Mappings:
Namespace Name Mixin selector official c
Ll;c:F
intermediary field_21488
Lnet/minecraft/class_1162;field_21488:F
named z
Lnet/minecraft/util/math/Vector4f;z:F
-
w
private float w- Mappings:
Namespace Name Mixin selector official d
Ll;d:F
intermediary field_21489
Lnet/minecraft/class_1162;field_21489:F
named w
Lnet/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)V
intermediary <init>
Lnet/minecraft/class_1162;<init>(FFFF)V
named <init>
Lnet/minecraft/util/math/Vector4f;<init>(FFFF)V
-
Vector4f
- Mappings:
Namespace Name Mixin selector official <init>
Ll;<init>(Lk;)V
intermediary <init>
Lnet/minecraft/class_1162;<init>(Lnet/minecraft/class_1160;)V
named <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 a
Ll;a()F
intermediary method_4953
Lnet/minecraft/class_1162;method_4953()F
named getX
Lnet/minecraft/util/math/Vector4f;getX()F
-
getY
public float getY()- Mappings:
Namespace Name Mixin selector official b
Ll;b()F
intermediary method_4956
Lnet/minecraft/class_1162;method_4956()F
named getY
Lnet/minecraft/util/math/Vector4f;getY()F
-
getZ
public float getZ()- Mappings:
Namespace Name Mixin selector official c
Ll;c()F
intermediary method_4957
Lnet/minecraft/class_1162;method_4957()F
named getZ
Lnet/minecraft/util/math/Vector4f;getZ()F
-
getW
public float getW()- Mappings:
Namespace Name Mixin selector official d
Ll;d()F
intermediary method_23853
Lnet/minecraft/class_1162;method_23853()F
named getW
Lnet/minecraft/util/math/Vector4f;getW()F
-
multiply
public void multiply(float value) - Mappings:
Namespace Name Mixin selector official a
Ll;a(F)V
intermediary method_35927
Lnet/minecraft/class_1162;method_35927(F)V
named multiply
Lnet/minecraft/util/math/Vector4f;multiply(F)V
-
multiplyComponentwise
- Mappings:
Namespace Name Mixin selector official a
Ll;a(Lk;)V
intermediary method_4954
Lnet/minecraft/class_1162;method_4954(Lnet/minecraft/class_1160;)V
named multiplyComponentwise
Lnet/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 a
Ll;a(FFFF)V
intermediary method_23851
Lnet/minecraft/class_1162;method_23851(FFFF)V
named set
Lnet/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 b
Ll;b(FFFF)V
intermediary method_35929
Lnet/minecraft/class_1162;method_35929(FFFF)V
named add
Lnet/minecraft/util/math/Vector4f;add(FFFF)V
-
dotProduct
- Mappings:
Namespace Name Mixin selector official a
Ll;a(Ll;)F
intermediary method_23217
Lnet/minecraft/class_1162;method_23217(Lnet/minecraft/class_1162;)F
named dotProduct
Lnet/minecraft/util/math/Vector4f;dotProduct(Lnet/minecraft/util/math/Vector4f;)F
-
normalize
public boolean normalize()- Mappings:
Namespace Name Mixin selector official e
Ll;e()Z
intermediary method_23218
Lnet/minecraft/class_1162;method_23218()Z
named normalize
Lnet/minecraft/util/math/Vector4f;normalize()Z
-
transform
- Mappings:
Namespace Name Mixin selector official a
Ll;a(Ld;)V
intermediary method_22674
Lnet/minecraft/class_1162;method_22674(Lnet/minecraft/class_1159;)V
named transform
Lnet/minecraft/util/math/Vector4f;transform(Lnet/minecraft/util/math/Matrix4f;)V
-
rotate
- Mappings:
Namespace Name Mixin selector official a
Ll;a(Lg;)V
intermediary method_23852
Lnet/minecraft/class_1162;method_23852(Lnet/minecraft/class_1158;)V
named rotate
Lnet/minecraft/util/math/Vector4f;rotate(Lnet/minecraft/util/math/Quaternion;)V
-
normalizeProjectiveCoordinates
public void normalizeProjectiveCoordinates()- Mappings:
Namespace Name Mixin selector official f
Ll;f()V
intermediary method_23219
Lnet/minecraft/class_1162;method_23219()V
named normalizeProjectiveCoordinates
Lnet/minecraft/util/math/Vector4f;normalizeProjectiveCoordinates()V
-
lerp
- Mappings:
Namespace Name Mixin selector official a
Ll;a(Ll;F)V
intermediary method_35928
Lnet/minecraft/class_1162;method_35928(Lnet/minecraft/class_1162;F)V
named lerp
Lnet/minecraft/util/math/Vector4f;lerp(Lnet/minecraft/util/math/Vector4f;F)V
-
toString
-