[gtk/wip/baedert/for-master] Revert "transform: Compare 3d points directly"



commit 419b3aa94da306d4f522daa789b3f19e145c9a52
Author: Timm Bäder <mail baedert org>
Date:   Sun Jun 7 08:58:46 2020 +0200

    Revert "transform: Compare 3d points directly"
    
    This reverts commit 9657b63799e458b3fd7cb31eeab13516b7e013f9.

 gsk/gsktransform.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gsk/gsktransform.c b/gsk/gsktransform.c
index 3b41486a7d..79f230c0a1 100644
--- a/gsk/gsktransform.c
+++ b/gsk/gsktransform.c
@@ -570,9 +570,7 @@ gsk_translate_transform_equal (GskTransform *first_transform,
   GskTranslateTransform *first = (GskTranslateTransform *) first_transform;
   GskTranslateTransform *second = (GskTranslateTransform *) second_transform;
 
-  return G_APPROX_VALUE (first->point.x, second->point.x, FLT_EPSILON) &&
-         G_APPROX_VALUE (first->point.y, second->point.y, FLT_EPSILON) &&
-         G_APPROX_VALUE (first->point.z, second->point.z, FLT_EPSILON);
+  return graphene_point3d_equal (&first->point, &second->point);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]