[gegl] transform-core: clearer code
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] transform-core: clearer code
- Date: Mon, 10 Dec 2012 13:52:27 +0000 (UTC)
commit a6b46082ede1db0254b3230abecbdb2509e020b4
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Mon Dec 10 08:45:38 2012 -0500
transform-core: clearer code
operations/transform/transform-core.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 9268c3b..344f031 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -1088,8 +1088,8 @@ transform_generic (GeglBuffer *dest,
}
/*
- * Use to determine if transform matrix coefficients are close enough
- * to integers.
+ * Use to determine if key transform matrix coefficients are close
+ * enough to zero or integers.
*/
#define GEGL_TRANSFORM_CORE_EPSILON ((gdouble) 0.0000001)
@@ -1102,14 +1102,14 @@ static inline gboolean is_zero (const gdouble f)
static inline gboolean is_one (const gdouble f)
{
- return is_zero(f-(gdouble) 1.0);
+ return (is_zero (f-(gdouble) 1.0));
}
static gboolean gegl_matrix3_is_affine (GeglMatrix3 *matrix)
{
- return is_zero (matrix->coeff [2][0]) &&
- is_zero (matrix->coeff [2][1]) &&
- is_one (matrix->coeff [2][2]);
+ return (is_zero (matrix->coeff [2][0]) &&
+ is_zero (matrix->coeff [2][1]) &&
+ is_one (matrix->coeff [2][2]));
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]