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

x/caviar/src/math/mod.ts>Vector4

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

Constructors

new
Vector4(
x?: number,
y?: number,
z?: number,
w?: number,
)

Methods

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