35 Point p3(10.0f, 0.0f);
47 <<
"is inside triangle (a, b, c): " <<
bsp(a, b, c, p1) <<
std::endl;
49 <<
"is inside triangle (a, b, c): " <<
bsp(a, b, c, p2) <<
std::endl;
51 <<
"is inside triangle (a, b, c): " <<
bsp(a, b, c, p3) <<
std::endl;
53 <<
"is inside triangle (a, b, c): " <<
bsp(a, b, c, p4) <<
std::endl;
55 <<
"is inside triangle (a, b, c): " <<
bsp(a, b, c, p5) <<
std::endl;
57 <<
"is inside triangle (a, b, c): " <<
bsp(a, b, c, p6) <<
std::endl;
59 <<
"is inside triangle (a, b, c): " <<
bsp(a, b, c, p7) <<
std::endl;
61 <<
"is inside triangle (a, b, c): " <<
bsp(a, b, c, p8) <<
std::endl;
Header file for the Point class representing a 2D point with Fixed coordinates.
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
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 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...