@Environment(value=CLIENT) public class Vector4f extends Object
Modifier and Type | Field and Description |
---|---|
private float |
w |
private float |
x |
private float |
y |
private float |
z |
Constructor and Description |
---|
Vector4f() |
Vector4f(float x,
float y,
float z,
float w) |
Vector4f(Vector3f vector) |
Modifier and Type | Method and 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) |
public Vector4f()
public Vector4f(float x, float y, float z, float w)
public Vector4f(Vector3f vector)
public float getX()
public float getY()
public float getZ()
public float getW()
public void multiplyComponentwise(Vector3f vector)
public void set(float x, float y, float z, float w)
public float dotProduct(Vector4f other)
public boolean normalize()
public void transform(Matrix4f matrix)
public void rotate(Quaternion rotation)
public void normalizeProjectiveCoordinates()