Contains a description of a vector.

Example

createVector3.js

const vec3 = { x: 0, y: 0, z: 0 };

Example

createVector3.ts

import { Vector3 } from "@minecraft/server";

const vec3: Vector3 = { x: 0, y: 0, z: 0 };

Hierarchy

  • Vector3

Properties

x y z

Properties

x: number

Remarks

X component of this vector.

y: number

Remarks

Y component of this vector.

z: number

Remarks

Z component of this vector.