MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / deg2rad

Function deg2rad

src/ts-tailwind/Components/ModelViewer/ModelViewer.tsx:37–37  ·  view source on GitHub ↗
(d: number)

Source from the content-addressed store, hash-verified

35
36const isTouch = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0);
37const deg2rad = (d: number) => (d * Math.PI) / 180;
38const DECIDE = 8; // px before we decide horizontal vs vertical
39const ROTATE_SPEED = 0.005;
40const INERTIA = 0.925;

Callers 2

ModelViewer.tsxFile · 0.70
ModelViewerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected