JX Application Framework
Loading...
Searching...
No Matches
Classes | Functions
JRect.h File Reference
#include "JPoint.h"
#include "jMath.h"
Include dependency graph for JRect.h:
This graph shows which files directly or indirectly include this file:

Classes

class  JRect
 

Functions

bool JIntersection (const JRect &r1, const JRect &r2, JRect *result)
 
JRect JCovering (const JRect &r1, const JRect &r2)
 
std::istream & operator>> (std::istream &input, JRect &r)
 
std::ostream & operator<< (std::ostream &output, const JRect &r)
 
bool operator== (const JRect &r1, const JRect &r2)
 
JRect operator+ (const JRect &r, const JPoint &p)
 
JRect operator- (const JRect &r, const JPoint &p)
 

Function Documentation

◆ JCovering()

JRect JCovering ( const JRect r1,
const JRect r2 
)

Returns the smallest rectangle enclosing the two given rectangles.

◆ JIntersection()

bool JIntersection ( const JRect r1,
const JRect r2,
JRect result 
)

Returns true if the intersection of r1 and r2 is not empty. It is safe for r1 or r2 to also be the result.

◆ operator+()

JRect operator+ ( const JRect r,
const JPoint p 
)
inline

◆ operator-()

JRect operator- ( const JRect r,
const JPoint p 
)
inline

◆ operator<<()

std::ostream & operator<< ( std::ostream &  output,
const JRect r 
)

◆ operator==()

bool operator== ( const JRect r1,
const JRect r2 
)
inline

◆ operator>>()

std::istream & operator>> ( std::istream &  input,
JRect r 
)