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

x/canvaseno/mod.ts>Camera

Canvas API for deno
Latest
interface Camera
import { type Camera } from "https://deno.land/x/canvaseno@v1.0.2/mod.ts";

Properties

eye: Vector3

a 3d point locating the camera.

coa: Vector3

center of attention - the 3d point the camera is looking at.

A unit vector pointing the cameras up direction. Note that using only eye and coa would leave the roll of the camera unspecified.

near: number

near clipping plane distance

far: number

far clipping plane distance

field of view in radians