There was an error while loading. Please reload this page.
The Vector3 is the must commonly used vector for 3D.
import { Vector3 } from "noobgl-vector";
new Vector3(x, y, z);
x
0
y
z
.x the X value of the vector.
.x
.y the Y value of the vector.
.y
.z the Z value of the vector.
.z
.length the length of the vector
.length
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)
Home
Documentation