function IsPointInTriangle(X, Y: TFloat): Boolean;
function IsPointInTriangle(Point: TFloatPoint): Boolean;
Check whether the given coordinates are within the triangle defined by the three color points. The function uses the barycentric coordinates and thus may only be called after the coordinations have been transformed in the PrepareSampling procedure. In this case a call will be typically pretty fast, otherwise, the output is undefined.
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024