-
Notifications
You must be signed in to change notification settings - Fork 15
Vector4
Calvin Day edited this page Jul 6, 2021
·
3 revisions
The Vector4
data structure is used to store four floats as an x, y, z, w
coordinate quartet.
Vector4()
Vector4 quad = new Vector4();
Vector4
with the value of 0, 0, 0, 0
Vector4(float x, float y, float z, float w)
Vector4 position = new Vector4(55, 67.4f, 4.3f, 5);
Vector4
with the value of 55, 67.4f, 4.3f, 5
setX(float x)
quad.setX(53);
x
to 53
setY(float y)
quad.setY(326);
y
to 326
setZ(float z)
quad.setZ(33);
z
to 33
setW(float w)
quad.setW(6);
w
to 6
getX()
quad.getX();
x
getY()
quad.getY();
y
getZ()
quad.getZ();
z
getW()
quad.getW();
w