aabb

Negating the truthiness of a boolean evaluation causing 5x slowdown?

I'm trying to implement an octree, and for that, I need a fast AABB-ray intersection algorithm. After some searching, I came across this paper that seemed to offer that. From the source code, available here, I translated the pluecker_cls_cff function to C# as this: public bool Intersect_2(ref RayPluecker r) { switch (r.Classification)...

Collision test between a triangle and a rectangle (AABB) in 2D

I've spent a good amount of time getting intersections working correctly between various 2D shapes (circle-circle, circle-tri, circle-rect, rect-rect - a huge thanks to those who've solved such problems from which I drew my solutions from) for a simple project and am now in the process of trying to implement an triangle-AABB intersection...

Find best fit axis aligned bounding box (AABB) INSIDE of a orientend bounding box (OBB)?

Hi, I can't figure out a simple solution for the following problem: I start with rotating, scaling and translating a AABB (lets call X) which will result in a OBB (lets call Y) Now I want to figure out a new AABB (lets call Z) inside of the OBB (called Y) which fits best. How can I solve this? BTW: I know that there may exists mult...