public static bool TestPointPolyhedron(Vector3 p, Plane[] planes) { return planes.All(t => (DistPointPlane(p, t) <= 0f)); }