#include #include namespace psemek::ui { bool triangle_shape::contains(math::point const & point) const { return math::contains(triangle, point); } math::box triangle_shape::bbox() const { math::box b; b |= triangle[0]; b |= triangle[1]; b |= triangle[2]; return b; } }