JX Application Framework
Loading...
Searching...
No Matches
Functions
JRect.cpp File Reference
#include "JRect.h"
#include "JMinMax.h"
#include "jAssert.h"
Include dependency graph for JRect.cpp:

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)
 

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<<()

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

◆ operator>>()

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