summaryrefslogtreecommitdiffstats
path: root/libdimension/bvh/prtree.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-09-03 15:55:19 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-10-25 11:03:56 -0400
commitb554b20c8d59d6046bdcec7c79fb61cd0e65811c (patch)
treea6c6f257cfaffcec953be7c0cce180f7a8855c68 /libdimension/bvh/prtree.c
parentb2cf35c26d5263f3079480208429e3a1d7dd2373 (diff)
downloaddimension-b554b20c8d59d6046bdcec7c79fb61cd0e65811c.tar.xz
math: Make vectors have an array instead of different fields.
Diffstat (limited to 'libdimension/bvh/prtree.c')
-rw-r--r--libdimension/bvh/prtree.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/libdimension/bvh/prtree.c b/libdimension/bvh/prtree.c
index c8e4e54..84fca58 100644
--- a/libdimension/bvh/prtree.c
+++ b/libdimension/bvh/prtree.c
@@ -74,48 +74,48 @@ enum {
static int
dmnsn_xmin_comp(const void *l, const void *r)
{
- double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.min.x;
- double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.min.x;
+ double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.min.X;
+ double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.min.X;
return (lval > rval) - (lval < rval);
}
static int
dmnsn_ymin_comp(const void *l, const void *r)
{
- double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.min.y;
- double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.min.y;
+ double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.min.Y;
+ double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.min.Y;
return (lval > rval) - (lval < rval);
}
static int
dmnsn_zmin_comp(const void *l, const void *r)
{
- double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.min.z;
- double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.min.z;
+ double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.min.Z;
+ double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.min.Z;
return (lval > rval) - (lval < rval);
}
static int
dmnsn_xmax_comp(const void *l, const void *r)
{
- double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.max.x;
- double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.max.x;
+ double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.max.X;
+ double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.max.X;
return (lval < rval) - (lval > rval);
}
static int
dmnsn_ymax_comp(const void *l, const void *r)
{
- double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.max.y;
- double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.max.y;
+ double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.max.Y;
+ double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.max.Y;
return (lval < rval) - (lval > rval);
}
static int
dmnsn_zmax_comp(const void *l, const void *r)
{
- double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.max.z;
- double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.max.z;
+ double lval = (*(const dmnsn_colored_prnode **)l)->node->aabb.max.Z;
+ double rval = (*(const dmnsn_colored_prnode **)r)->node->aabb.max.Z;
return (lval < rval) - (lval > rval);
}