Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NikLever/ThreeJS-PathEditor
/ calcAngleFromXAxis
Method
calcAngleFromXAxis
geometry.js:79–83 ·
view source on GitHub ↗
( org, pt )
Source
from the content-addressed store, hash-verified
77
}
78
79
static calcAngleFromXAxis( org, pt ){
80
const
x = pt.x - org.x;
81
const
y = pt.y - org.y;
82
return
( x>0 ) ? Math.atan( y/x ) : Math.atan( y/x ) - Math.PI;
83
}
84
}
Callers
1
constructor
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected