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

Functions

JPoint JPinInRect (const JPoint &pt, const JRect &r)
 
std::istream & operator>> (std::istream &input, JPoint &pt)
 
std::ostream & operator<< (std::ostream &output, const JPoint &pt)
 

Function Documentation

◆ JPinInRect()

JPoint JPinInRect ( const JPoint pt,
const JRect r 
)

Shift the given point as little as possible to put it inside the given rect.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  output,
const JPoint pt 
)

◆ operator>>()

std::istream & operator>> ( std::istream &  input,
JPoint pt 
)