summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/geometry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/dimension/geometry.h b/libdimension/dimension/geometry.h
index 42a9985..c90c3c8 100644
--- a/libdimension/dimension/geometry.h
+++ b/libdimension/dimension/geometry.h
@@ -87,13 +87,13 @@ dmnsn_max(double a, double b)
DMNSN_INLINE double
dmnsn_radians(double degrees)
{
- return degrees*M_PI/180.0;
+ return degrees*atan(1.0)/45.0;
}
DMNSN_INLINE double
dmnsn_degrees(double radians)
{
- return radians*180.0/M_PI;
+ return radians*45.0/atan(1.0);
}
/* Shorthand for vector/matrix construction */