Make a special equals() function, like this:
Make similar functions to compare vectors and colors.Code:const //A treshold for float comparison EPSILON = 1e-5; implementation function Equals(const a, b: Single): Boolean; begin Result := (a - b < EPSILON); end;
Bookmarks