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.
Install with npm / yarn / pnpm:
npm install fov-utilities
yarn add fov-utilities
pnpm add fov-utilities
We also provide typings compatible with the deno runtime. You have 3 ways you can import them:
import { convertFOV } from 'https://raw.githubusercontent.com/animafps/fov-utilities/main/deno/mod.ts';
import { convertFOV } from 'https://deno.land/x/fov/mod.ts';
import { convertFOV } from 'https://cdn.skypack.dev/fov-utilities?dts';
Api docs are hosted at https://fov.js.org