Conscience Core
Public Member Functions | Public Attributes | List of all members
conscience_core::axiomes::CscRect2d Class Reference

#include <Csc2dTypes.h>

Public Member Functions

 CscRect2d (double bottomLeftX=0, double bottomLeftY=0, double width=0, double height=0)
 
 CscRect2d (const CscPoint2d &bottomLeft, const CscSize2d &size)
 
 CscRect2d (const CscRect2d &other)
 
 CscRect2d (CscRect2d &&other)
 
CscRect2doperator= (const CscRect2d &other)
 
CscRect2doperator= (CscRect2d &&other) noexcept
 
CscPoint2d topLeft () const
 
CscPoint2d topRight () const
 
CscPoint2d bottomRight () const
 
CscPoint2d center () const
 
CscRect2d intersection (const CscRect2d &other) const
 
double area () const
 
double getWidth () const
 
double getHeight () const
 
bool isIncludedInOther (const CscRect2d &rectangle) const
 
string toString () const
 
double distanceWith (const CscRect2d &rectangle2) const
 
double getIntersectionOverUnionWith (const CscRect2d &bb2) const
 

Public Attributes

CscPoint2d bottomLeft
 
CscSize2d size
 

Constructor & Destructor Documentation

◆ CscRect2d() [1/4]

conscience_core::axiomes::CscRect2d::CscRect2d ( double  bottomLeftX = 0,
double  bottomLeftY = 0,
double  width = 0,
double  height = 0 
)

◆ CscRect2d() [2/4]

conscience_core::axiomes::CscRect2d::CscRect2d ( const CscPoint2d bottomLeft,
const CscSize2d size 
)

◆ CscRect2d() [3/4]

conscience_core::axiomes::CscRect2d::CscRect2d ( const CscRect2d other)

◆ CscRect2d() [4/4]

conscience_core::axiomes::CscRect2d::CscRect2d ( CscRect2d &&  other)

Member Function Documentation

◆ area()

double conscience_core::axiomes::CscRect2d::area ( ) const

◆ bottomRight()

CscPoint2d conscience_core::axiomes::CscRect2d::bottomRight ( ) const

◆ center()

CscPoint2d conscience_core::axiomes::CscRect2d::center ( ) const

◆ distanceWith()

double conscience_core::axiomes::CscRect2d::distanceWith ( const CscRect2d rectangle2) const

Distance between this rectangle's center and other rectangle's center

◆ getHeight()

double conscience_core::axiomes::CscRect2d::getHeight ( ) const

◆ getIntersectionOverUnionWith()

double conscience_core::axiomes::CscRect2d::getIntersectionOverUnionWith ( const CscRect2d bb2) const

◆ getWidth()

double conscience_core::axiomes::CscRect2d::getWidth ( ) const

◆ intersection()

CscRect2d conscience_core::axiomes::CscRect2d::intersection ( const CscRect2d other) const

◆ isIncludedInOther()

bool conscience_core::axiomes::CscRect2d::isIncludedInOther ( const CscRect2d rectangle) const

◆ operator=() [1/2]

CscRect2d& conscience_core::axiomes::CscRect2d::operator= ( const CscRect2d other)
inline

◆ operator=() [2/2]

CscRect2d& conscience_core::axiomes::CscRect2d::operator= ( CscRect2d &&  other)
inlinenoexcept

◆ topLeft()

CscPoint2d conscience_core::axiomes::CscRect2d::topLeft ( ) const

◆ topRight()

CscPoint2d conscience_core::axiomes::CscRect2d::topRight ( ) const

◆ toString()

string conscience_core::axiomes::CscRect2d::toString ( ) const

Member Data Documentation

◆ bottomLeft

CscPoint2d conscience_core::axiomes::CscRect2d::bottomLeft

◆ size

CscSize2d conscience_core::axiomes::CscRect2d::size

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