Options
All
  • Public
  • Public/Protected
  • All
Menu

FoV Utilities

fov-utilities

license npm npm

About

Set of helper functions to calculate different FoVs based off the FILM notation standard of FoV scaling and aspect ratio. It was developed for the use in FPSMath discord bot.

Installation

Node

Install with npm / yarn / pnpm:

npm install fov-utilities
yarn add fov-utilities
pnpm add fov-utilities

Deno

We also provide typings compatible with the deno runtime. You have 3 ways you can import them:

  1. Directly from GitHub
import { convertFOV } from 'https://raw.githubusercontent.com/animafps/fov-utilities/main/deno/mod.ts';
  1. From deno.land/x
import { convertFOV } from 'https://deno.land/x/fov/mod.ts';
  1. From skypack.dev
import { convertFOV } from 'https://cdn.skypack.dev/fov-utilities?dts';

API Docs

Api docs are hosted at https://fov.js.org