From 154efc3e429508bf27dbd31ebe66b6e1a26b7ded Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 28 May 2017 19:23:02 +0800 Subject: Make PI/RADIAN/SQRT2/LN2 global single precision float constants. --- source/fitz/geometry.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/fitz/geometry.c') 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; -- cgit v1.2.3