summaryrefslogtreecommitdiff
path: root/source/fitz/geometry.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-05-28 19:23:02 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-05-29 18:15:40 +0800
commit154efc3e429508bf27dbd31ebe66b6e1a26b7ded (patch)
tree6c02cc820dd732c0efc44fe401997b39b645bd11 /source/fitz/geometry.c
parent2f987ef9812f74be9c272563d200e8ef1bac46ea (diff)
downloadmupdf-154efc3e429508bf27dbd31ebe66b6e1a26b7ded.tar.xz
Make PI/RADIAN/SQRT2/LN2 global single precision float constants.
Diffstat (limited to 'source/fitz/geometry.c')
-rw-r--r--source/fitz/geometry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/geometry.c b/source/fitz/geometry.c
index 1940b417..64abd5c4 100644
--- a/source/fitz/geometry.c
+++ b/source/fitz/geometry.c
@@ -128,8 +128,8 @@ fz_rotate(fz_matrix *m, float theta)
}
else
{
- s = sinf(theta * (float)M_PI / 180);
- c = cosf(theta * (float)M_PI / 180);
+ s = sinf(theta * FZ_PI / 180);
+ c = cosf(theta * FZ_PI / 180);
}
m->a = c; m->b = s;
@@ -177,8 +177,8 @@ fz_pre_rotate(fz_matrix *m, float theta)
}
else
{
- float s = sinf(theta * (float)M_PI / 180);
- float c = cosf(theta * (float)M_PI / 180);
+ float s = sinf(theta * FZ_PI / 180);
+ float c = cosf(theta * FZ_PI / 180);
float a = m->a;
float b = m->b;
m->a = c * a + s * m->c;