Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/unconed/MathBox.js
/ clamp
Function
clamp
src/CameraProxy.js:7–7 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
5
6
// avoid atan2 singularity
7
var
clamp =
function
(x) {
return
Math.min(π/2 - .0001, Math.max(-π/2 + .0001, x)); };
8
9
this.set({
10
orbit: options.orbit === undefined ? 3.5 : options.orbit,
Callers
1
CameraProxy.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected