X-Git-Url: https://harrygodden.com/git/?p=csRadar.git;a=blobdiff_plain;f=csrMath.h;fp=csrMath.h;h=c14234fe6f9da4a44d0278b8cfff498ffc2be8a9;hp=31891f8cd682758faa0c897a6eb758f4f5584c2a;hb=a53095e1511fecb8cc83c692e7ce7b23852fff16;hpb=1d2752b69b6285d5eb6436728c6cf84228a9ccde diff --git a/csrMath.h b/csrMath.h index 31891f8..c14234f 100644 --- a/csrMath.h +++ b/csrMath.h @@ -408,6 +408,8 @@ void m4x3_transform_aabb( m4x3f m, boxf box ) v3_copy( box[0], a ); v3_copy( box[1], b ); + v3_fill( box[0], INFINITY ); + v3_fill( box[1], -INFINITY ); m4x3_expand_aabb_point( m, box, a ); m4x3_expand_aabb_point( m, box, (v3f){ a[0], b[1], a[2] } );