Construct a vector from three components.

import { Vec3 } from '@js-draw/math';
const v1 = Vec3.of(1, 2, 3);
console.log(v1.plus(Vec3.of(0, 100, 0)));
  • Parameters

    • x: number
    • y: number
    • z: number

    Returns Vec3

OpenSource licenses