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

Function deg2rad

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

Source from the content-addressed store, hash-verified

43
44const isTouch = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.maxTouchPoints > 0);
45const deg2rad = (d: number) => (d * Math.PI) / 180;
46const DECIDE = 8; // px before we decide horizontal vs vertical
47const ROTATE_SPEED = 0.005;
48const INERTIA = 0.925;

Callers 2

ModelViewer.tsxFile · 0.70
ModelViewerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected