public Plane4f( Plane4f p ) { this.a = p.a; this.b = p.b; this.c = p.c; this.d = p.d; this.e = p.e; }
// TODO: clean this up, this is a huge mess // Intersection namespace, with one for each pair? public static bool HyperplaneHypercubeIntersection( Vector4f[] hcVertices, Plane4f plane ) { bool foundNegative = false; bool foundPositive = false; for ( int i = 0; i < 16; ++i ) { float val = plane.Distance( hcVertices[ i ] ); if ( val < 0 ) { foundNegative = true; } else if ( val > 0 ) { foundPositive = true; } } return foundNegative && foundPositive; }