mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-21 21:27:56 +01:00
add tau constant
This commit is contained in:
parent
fd6e5cebbd
commit
3944202a83
@ -131,9 +131,10 @@ function lineSegmentsCross(a, b, c, d) {
|
||||
return (r > 0.0 && r < 1.0) && (s >= 0.0 && s <= 1.0);
|
||||
}
|
||||
|
||||
const TAU = Math.PI * 2.0;
|
||||
function normalizeAngle(a) {
|
||||
a %= Math.PI * 2;
|
||||
return a > 0.0 ? a : a + Math.PI * 2;
|
||||
a %= TAU;
|
||||
return a > 0.0 ? a : a + TAU;
|
||||
}
|
||||
|
||||
function betweenAngles(n, a, b) {
|
||||
|
Loading…
Reference in New Issue
Block a user