HPS::OOC::Area

class HPS::OOC::Area

The Area class is represents a quadrilateral area for highlighting.

Public Functions

inline Area()
inline Area(HPS::Rectangle const &in_rect, HPS::MatrixKit const &in_world_to_window, const char *in_name)
inline HPS::UTF8 const &GetName() const

Returns the name associated with this Area

inline HPS::Point const &GetWindowMax() const
inline HPS::Point const &GetWindowMin() const
inline HPS::MatrixKit const &GetWorldToWindow() const

Returns the MatrixKit associated with this Area

inline bool Intersects(HPS::Point const &world_space_point) const

Determines if a point intersects this Area.

Parameters

world_space_point – The point to test

Returns

true if the point intersects this area, false otherwise.

inline bool Intersects(HPS::SimpleCuboid const &world_space_bounding) const

Determines if a cuboid intersects this Area.

Parameters

world_space_bounding – The cuboid to test

Returns

true if the cuboid interects this area, false otherwise.