Contains a description of a vector.

const vec3 = { x: 0, y: 0, z: 0 };
import { Vector3 } from "@minecraft/server";

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

Implemented by

Properties

x y z

Properties

x: number

X component of this vector.

y: number

Y component of this vector.

z: number

Z component of this vector.