-
Notifications
You must be signed in to change notification settings - Fork 0
Vector3
Bluu edited this page Feb 12, 2018
·
1 revision
The Vector3 is the must commonly used vector for 3D.
import { Vector3 } from "noobgl-vector";
new Vector3(x, y, z);
-
x
(optional) the X value of the vector (default0
). -
y
(optional) the Y value of the vector (default0
). -
z
(optional) the Z value of the vector (default0
).
.x
the X value of the vector.
.y
the Y value of the vector.
.z
the Z value of the vector.
.length
the length of the vector
set(x, y, z)
add(x, y, z)
subtract(x, y, z)
multiply(x, y, z)
divide(x, y, z)
cross(x, y, z)
normalize()
clone()
static length(x, y, z)