public virtual IndexedVector3 LocalGetSupportingVertex(ref IndexedVector3 vec) { IndexedVector3 supportVertex; IndexedMatrix ident = IndexedMatrix.Identity; SupportVertexCallback supportCallback = new SupportVertexCallback(ref vec, ref ident); IndexedVector3 aabbMax = MathUtil.MAX_VECTOR; IndexedVector3 aabbMin = MathUtil.MIN_VECTOR; // URGGHHH! if (m_inConstructor) { this.ProcessAllTrianglesCtor(supportCallback, ref aabbMin, ref aabbMax); } else { ProcessAllTriangles(supportCallback, ref aabbMin, ref aabbMax); } supportVertex = supportCallback.GetSupportVertexLocal(); supportCallback.Cleanup(); return(supportVertex); }
public virtual IndexedVector3 LocalGetSupportingVertex(ref IndexedVector3 vec) { IndexedVector3 supportVertex; IndexedMatrix ident = IndexedMatrix.Identity; SupportVertexCallback supportCallback = new SupportVertexCallback(ref vec,ref ident); IndexedVector3 aabbMax = MathUtil.MAX_VECTOR; IndexedVector3 aabbMin = MathUtil.MIN_VECTOR; // URGGHHH! if (m_inConstructor) { this.ProcessAllTrianglesCtor(supportCallback, ref aabbMin, ref aabbMax); } else { ProcessAllTriangles(supportCallback, ref aabbMin, ref aabbMax); } supportVertex = supportCallback.GetSupportVertexLocal(); supportCallback.Cleanup(); return supportVertex; }