Back to class index
| Polygon::PointOnEdgeSyntaxfloat4 Polygon::PointOnEdge(float normalizedDistance) const; [21 lines of code]Computes a point on the perimeter of this polygon. ParametersfloatnormalizedDistanceA value in the range [0,1[ specifying the distance along the polygon edge to travel. The polygon perimeter forms a closed loop, so PointOnEdge(0.f) == PointOnEdge(1.f) and is equal to the point p[0] of this polygon. As another example, PointOnEdge(0.5f) returns the point half-way around the polygon edge (but not necessarily the farthest point from p[0]). See Also |