Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/caviar/src/math/vector/mod.ts>Vector

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Go to Latest
class Vector
implements IVector
import { Vector } from "https://deno.land/x/caviar@1.0.2/src/math/vector/mod.ts";

Constructors

new
Vector(x?: number, y?: number)

Methods

fromArray(src: Float32Array, i?): this
set(x?, y?): this
toArray(dst?: Float32Array, i?): Float32Array
toString(): string