Skip to content

format

typescript
new Vector3 ((x, y, z))

description

Creates a new Vector3 object with the specified x, y, and z components.

parameter

param_nametypedescription
xnumber?The x component.
ynumber?The y component.
znumber?The z component.

code example

typescript
let vec3:Vector3 = new Vector3(1,2,3)