SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
meshkit::Box2 Class Reference

#include <geometry.hpp>

Collaboration diagram for meshkit::Box2:

Public Member Functions

constexpr Box2 ()=default
 
constexpr Box2 (Point2 a, Point2 b)
 
constexpr double left () const
 
constexpr double right () const
 
constexpr double top () const
 
constexpr double bottom () const
 
constexpr double width () const
 
constexpr double height () const
 
 Box2 (double x, double y, double w, double h)
 
Box2 normalized () const
 
bool isValid () const
 
bool isEmpty () const
 
bool isNull () const
 
Point2 bottomRight () const
 
Point2 topLeft () const
 
bool contains (double x, double y) const
 
bool contains (Point2 p) const
 
bool intersects (Box2 b) const
 
Box2 intersected (Box2 b) const
 
Box2 adjusted (double l, double t, double r, double b) const
 
constexpr Point2 center () const
 
Box2 united (Box2 b) const
 

Constructor & Destructor Documentation

◆ Box2() [1/3]

constexpr meshkit::Box2::Box2 ( )
constexprdefault

◆ Box2() [2/3]

constexpr meshkit::Box2::Box2 ( Point2  a,
Point2  b 
)
inlineconstexpr

◆ Box2() [3/3]

meshkit::Box2::Box2 ( double  x,
double  y,
double  w,
double  h 
)
inline

Member Function Documentation

◆ adjusted()

Box2 meshkit::Box2::adjusted ( double  l,
double  t,
double  r,
double  b 
) const
inline
Here is the call graph for this function:

◆ bottom()

constexpr double meshkit::Box2::bottom ( ) const
inlineconstexpr
Here is the caller graph for this function:

◆ bottomRight()

Point2 meshkit::Box2::bottomRight ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ center()

constexpr Point2 meshkit::Box2::center ( ) const
inlineconstexpr

◆ contains() [1/2]

bool meshkit::Box2::contains ( double  x,
double  y 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ contains() [2/2]

bool meshkit::Box2::contains ( Point2  p) const
inline
Here is the call graph for this function:

◆ height()

constexpr double meshkit::Box2::height ( ) const
inlineconstexpr

◆ intersected()

Box2 meshkit::Box2::intersected ( Box2  b) const
inline
Here is the call graph for this function:

◆ intersects()

bool meshkit::Box2::intersects ( Box2  b) const
inline
Here is the call graph for this function:

◆ isEmpty()

bool meshkit::Box2::isEmpty ( ) const
inline

◆ isNull()

bool meshkit::Box2::isNull ( ) const
inline

◆ isValid()

bool meshkit::Box2::isValid ( ) const
inline

◆ left()

constexpr double meshkit::Box2::left ( ) const
inlineconstexpr
Here is the caller graph for this function:

◆ normalized()

Box2 meshkit::Box2::normalized ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ right()

constexpr double meshkit::Box2::right ( ) const
inlineconstexpr
Here is the caller graph for this function:

◆ top()

constexpr double meshkit::Box2::top ( ) const
inlineconstexpr
Here is the caller graph for this function:

◆ topLeft()

Point2 meshkit::Box2::topLeft ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ united()

Box2 meshkit::Box2::united ( Box2  b) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ width()

constexpr double meshkit::Box2::width ( ) const
inlineconstexpr

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