Skip to content

Instantly share code, notes, and snippets.

View Gerard097's full-sized avatar

Gerardo Hernandez Gerard097

  • Guadalajara, Jal.
View GitHub Profile
@Kinwailo
Kinwailo / FrustumAABBIntersect.cpp
Last active May 28, 2024 12:49
Frustum AABB Intersect
// Returns: INTERSECT : 0
// INSIDE : 1
// OUTSIDE : 2
int FrustumAABBIntersect(Plane *planes, Vector &mins, Vector &maxs) {
int ret = INSIDE;
Vector vmin, vmax;
for(int i = 0; i < 6; ++i) {
// X axis
if(planes[i].normal.x > 0) {