56 bool allPositive = (cp1 >
Fixed(0) && cp2 >
Fixed(0) && cp3 >
Fixed(0));
57 bool allNegative = (cp1 <
Fixed(0) && cp2 <
Fixed(0) && cp3 <
Fixed(0));
59 return allPositive || allNegative;
Header file for the Point class representing a 2D point with Fixed coordinates.
bool bsp(Point const a, Point const b, Point const c, Point const point)
Determines if a point is strictly inside a triangle defined by three other points.
Fixed crossProduct(const Point &a, const Point &b, const Point &c)
Helper function to calculate the 2D cross product of vectors (b-a) and (c-a).
Fixed getY() const
Gets the y-coordinate of the point.
Fixed getX() const
Gets the x-coordinate of the point.
Header file for the Fixed class representing fixed-point numbers with overloaded operators and min/ma...