Simplex utilities for GJK/EPA computations.

Static methods

staticinlineprojectOrigin2(vec1:Vec3, vec2:Vec3, out:Vec3):Int

Sets out to the minimum length point on the line (vec1, vec2) and returns the index of the voronoi region.

staticinlineprojectOrigin3(vec1:Vec3, vec2:Vec3, vec3:Vec3, out:Vec3):Int

Sets out to the minimum length point on the triangle (vec1, vec2, vec3) and returns the index of the voronoi region.

staticinlineprojectOrigin4(vec1:Vec3, vec2:Vec3, vec3:Vec3, vec4:Vec3, out:Vec3):Int

Sets out to the minimum length point on the tetrahedron (vec1, vec2, vec3, vec4) and returns the index of the voronoi region.