Package net.minecraft.client.util.math
Class Vector4f
java.lang.Object
net.minecraft.client.util.math.Vector4f
@Environment(CLIENT) public class Vector4f extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description float
dotProduct(Vector4f other)
boolean
equals(Object o)
float
getW()
float
getX()
float
getY()
float
getZ()
int
hashCode()
void
multiplyComponentwise(Vector3f vector)
boolean
normalize()
void
normalizeProjectiveCoordinates()
void
rotate(Quaternion rotation)
void
set(float x, float y, float z, float w)
String
toString()
void
transform(Matrix4f matrix)
-
Field Details
-
x
private float x -
y
private float y -
z
private float z -
w
private float w
-
-
Constructor Details
-
Vector4f
public Vector4f() -
Vector4f
public Vector4f(float x, float y, float z, float w) -
Vector4f
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getX
public float getX() -
getY
public float getY() -
getZ
public float getZ() -
getW
public float getW() -
multiplyComponentwise
-
set
public void set(float x, float y, float z, float w) -
dotProduct
-
normalize
public boolean normalize() -
transform
-
rotate
-
normalizeProjectiveCoordinates
public void normalizeProjectiveCoordinates() -
toString
-