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

Classes

class  JPoint
 

Functions

std::istream & operator>> (std::istream &input, JPoint &pt)
 
std::ostream & operator<< (std::ostream &output, const JPoint &pt)
 
JPoint JPinInRect (const JPoint &pt, const JRect &r)
 
bool operator== (const JPoint &p1, const JPoint &p2)
 
JPoint operator+ (const JPoint &p1, const JPoint &p2)
 
JPoint operator- (const JPoint &p1, const JPoint &p2)
 
JPoint operator* (const JPoint &p, const JFloat s)
 
JPoint operator* (const JFloat s, const JPoint &p)
 
JPoint operator/ (const JPoint &p, const JFloat s)
 

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*() [1/2]

JPoint operator* ( const JFloat  s,
const JPoint p 
)
inline

◆ operator*() [2/2]

JPoint operator* ( const JPoint p,
const JFloat  s 
)
inline

◆ operator+()

JPoint operator+ ( const JPoint p1,
const JPoint p2 
)
inline

◆ operator-()

JPoint operator- ( const JPoint p1,
const JPoint p2 
)
inline

◆ operator/()

JPoint operator/ ( const JPoint p,
const JFloat  s 
)
inline

◆ operator<<()

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

◆ operator==()

bool operator== ( const JPoint p1,
const JPoint p2 
)
inline

◆ operator>>()

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