Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JBox Struct Reference

Auxiliary data structure for box. More...

Public Attributes

double x1
 
double y1
 
double x2
 
double y2
 

Friends

std::istream & operator>> (std::istream &in, JBox &box)
 Read box from input stream.
 
std::ostream & operator<< (std::ostream &out, const JBox &box)
 Write box to output stream.
 

Detailed Description

Auxiliary data structure for box.

Definition at line 17 of file JBox.cc.

Friends And Related Symbol Documentation

◆ operator>>

std::istream & operator>> ( std::istream & in,
JBox & box )
friend

Read box from input stream.

Parameters
ininput stream
boxbox
Returns
input stream

Definition at line 26 of file JBox.cc.

27 {
28 return in >> box.x1 >> box.y1 >> box.x2 >> box.y2;
29 }
double y1
Definition JBox.cc:49
double x2
Definition JBox.cc:50
double x1
Definition JBox.cc:48
double y2
Definition JBox.cc:51

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const JBox & box )
friend

Write box to output stream.

Parameters
outoutput stream
boxbox
Returns
output stream

Definition at line 38 of file JBox.cc.

39 {
40 out << box.x1 << ' '
41 << box.y1 << ' '
42 << box.x2 << ' '
43 << box.y2;
44
45 return out;
46 }

Member Data Documentation

◆ x1

double JBox::x1

Definition at line 48 of file JBox.cc.

◆ y1

double JBox::y1

Definition at line 49 of file JBox.cc.

◆ x2

double JBox::x2

Definition at line 50 of file JBox.cc.

◆ y2

double JBox::y2

Definition at line 51 of file JBox.cc.


The documentation for this struct was generated from the following file: