ungerik / go3d

A performance oriented 2D/3D math package for Go
MIT License
303 stars 49 forks source link

Implemented some methods for axis aligned box in vec3 package. #9

Closed panmari closed 9 years ago

panmari commented 9 years ago

Namely Join and Intersect, also extended vec3 with some functionality.

ungerik commented 9 years ago

Are you sure that this Intersects version with its many calculations is faster than simply comparing min max values?

panmari commented 9 years ago

I did quite some testing in Java for this about a year ago and I got the best results using this algorithm. But I'd welcome a faster solution, of course :)