[gegl] rotate.c: no need to possibly cast radians down to gdouble (if gdouble < double) B/C fed to cos and
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] rotate.c: no need to possibly cast radians down to gdouble (if gdouble < double) B/C fed to cos and
- Date: Wed, 21 Nov 2012 15:42:38 +0000 (UTC)
commit 5eb38ea969f640490b74c4b46bcc293c8490fd03
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Wed Nov 21 10:42:19 2012 -0500
rotate.c: no need to possibly cast radians down to gdouble (if gdouble < double) B/C fed to cos and sin
operations/transform/rotate.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/transform/rotate.c b/operations/transform/rotate.c
index 0ed53a8..452fb72 100644
--- a/operations/transform/rotate.c
+++ b/operations/transform/rotate.c
@@ -39,7 +39,7 @@ create_matrix (OpTransform *op,
GeglMatrix3 *matrix)
{
GeglChantOperation *chant = GEGL_CHANT_OPERATION (op);
- gdouble radians = chant->degrees * (2 * G_PI / 360.0);
+ double radians = chant->degrees * (2 * G_PI / 360.0);
matrix->coeff [0][0] = matrix->coeff [1][1] = cos (radians);
matrix->coeff [0][1] = sin (radians);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]