#include <sprk_ooc.h>

Public Member Functions

Area (HPS::Rectangle const &in_rect, HPS::MatrixKit const &in_world_to_window, const char *in_name)
 
HPS::UTF8 const & GetName () const
 
HPS::Point const & GetWindowMax () const
 
HPS::Point const & GetWindowMin () const
 
HPS::MatrixKit const & GetWorldToWindow () const
 
bool Intersects (HPS::SimpleCuboid const &world_space_bounding) const
 
bool Intersects (HPS::Point const &world_space_point) const
 

Protected Attributes

HPS::UTF8 name
 
HPS::Point window_max
 
HPS::Point window_min
 
HPS::MatrixKit world_to_window
 

Detailed Description

The Area class is represents a quadrilateral area for highlighting.

Member Function Documentation

◆ GetName()

HPS::UTF8 const& HPS::OOC::Area::GetName ( ) const
inline

Returns the name associated with this Area

◆ GetWorldToWindow()

HPS::MatrixKit const& HPS::OOC::Area::GetWorldToWindow ( ) const
inline

Returns the MatrixKit associated with this Area

◆ Intersects() [1/2]

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

Determines if a cuboid intersects this Area.

Parameters
world_space_boundingThe cuboid to test
Returns
true if the cuboid interects this area, false otherwise.

◆ Intersects() [2/2]

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

Determines if a point intersects this Area.

Parameters
world_space_pointThe point to test
Returns
true if the point intersects this area, false otherwise.

The documentation for this class was generated from the following file: