Back to class index
| Polyhedron::ExtremeVertexSyntaxint Polyhedron::ExtremeVertex(const float4 &direction) const; [15 lines of code]Returns the index of the vertex of this polyhedron that reaches farthest in the given direction. Parametersconst float4 &directionThe direction vector to query for. This vector can be unnormalized. Return ValueThe supporting point of this polyhedron that reaches farthest in the given direction. The supporting point for a given direction is not necessarily unique, but this function will always return one of the vertices of this polyhedron. See Also |