Bench-MR
A Motion Planning Benchmark for Wheeled Mobile Robots
Public Member Functions | Public Attributes | List of all members
Rectangle Struct Reference

#include <Primitives.h>

Public Member Functions

 Rectangle ()=default
 
 Rectangle (double x1, double y1, double x2, double y2)
 
double x () const
 
double y () const
 
double width () const
 
double height () const
 
void correct ()
 Ensures that x1, y1 is the bottom-left corner (minimum coordinates). More...
 

Public Attributes

double x1 {0}
 
double y1 {0}
 
double x2 {0}
 
double y2 {0}
 

Constructor & Destructor Documentation

◆ Rectangle() [1/2]

Rectangle::Rectangle ( )
default

◆ Rectangle() [2/2]

Rectangle::Rectangle ( double  x1,
double  y1,
double  x2,
double  y2 
)
inline

Member Function Documentation

◆ correct()

void Rectangle::correct ( )
inline

Ensures that x1, y1 is the bottom-left corner (minimum coordinates).

◆ height()

double Rectangle::height ( ) const
inline

◆ width()

double Rectangle::width ( ) const
inline

◆ x()

double Rectangle::x ( ) const
inline

◆ y()

double Rectangle::y ( ) const
inline

Member Data Documentation

◆ x1

double Rectangle::x1 {0}

◆ x2

double Rectangle::x2 {0}

◆ y1

double Rectangle::y1 {0}

◆ y2

double Rectangle::y2 {0}

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