Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/caviar/src/math/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/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