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 floatdotProduct(Vector4f other)booleanequals(Object o)floatgetW()floatgetX()floatgetY()floatgetZ()inthashCode()voidmultiplyComponentwise(Vec3f vector)booleannormalize()voidnormalizeProjectiveCoordinates()voidrotate(Quaternion rotation)voidset(float x, float y, float z, float w)StringtoString()voidtransform(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
-