LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Functions
rect_2d.h File Reference

2D rectangle region Header File. More...

#include <rcsc/geom/region_2d.h>
#include <rcsc/geom/size_2d.h>
#include <rcsc/geom/line_2d.h>
#include <rcsc/geom/vector_2d.h>
Include dependency graph for rect_2d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rcsc::Rect2D
 2D rectangle regin class. More...
 

Functions

const rcsc::Rect2D rcsc::operator& (const rcsc::Rect2D &lhs, const rcsc::Rect2D &rhs)
 get the intersected rectangle of this rectangle and the other rectangle. If no intersection between rectangles, empty rectangle is returned. More...
 
const rcsc::Rect2D rcsc::operator| (const rcsc::Rect2D &lhs, const rcsc::Rect2D &rhs)
 get the united rectangle of this rectangle and the other rectangle. More...
 

Detailed Description

2D rectangle region Header File.

Function Documentation

◆ operator&()

const rcsc::Rect2D rcsc::operator& ( const rcsc::Rect2D lhs,
const rcsc::Rect2D rhs 
)
inline

get the intersected rectangle of this rectangle and the other rectangle. If no intersection between rectangles, empty rectangle is returned.

Parameters
otherother rectangle
Returns
new rectangle instance.

◆ operator|()

const rcsc::Rect2D rcsc::operator| ( const rcsc::Rect2D lhs,
const rcsc::Rect2D rhs 
)
inline

get the united rectangle of this rectangle and the other rectangle.

Parameters
otherother rectangle
Returns
new rectangle instance.