testPointTriangle
- bool testPointTriangle(double pX, double pY, double v0X, double v0Y, double v1X, double v1Y, double v2X, double v2Y)
public static
bool
testPointTriangle
- bool testPointTriangle(Vector2d point, Vector2d v0, Vector2d v1, Vector2d v2)
doml intersection_d
static functionsstatic variables
Test whether the given point <code>(pX, pY)</code> lies inside the triangle with the vertices <code>(v0X, v0Y)</code>, <code>(v1X, v1Y)</code>, <code>(v2X, v2Y)</code>.
@param pX the x coordinate of the point @param pY the y coordinate of the point @param v0X the x coordinate of the first vertex of the triangle @param v0Y the y coordinate of the first vertex of the triangle @param v1X the x coordinate of the second vertex of the triangle @param v1Y the y coordinate of the second vertex of the triangle @param v2X the x coordinate of the third vertex of the triangle @param v2Y the y coordinate of the third vertex of the triangle @return <code>true</code> iff the point lies inside the triangle; <code>false</code> otherwise