Torque 3D 3.8
ContentsIndexHome
PreviousUpNext
MathUtils::pointInPolygon Function
Syntax
C++
bool pointInPolygon(const Point2F * verts, U32 vertCount, const Point2F & testPt);

Returns true if the test point is within the polygon. @param verts The array of points which forms the polygon. @param vertCount The number of points in the polygon. @param testPt The point to test. 

 

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!