Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JLine Struct Reference

Auxiliary data structure for line. More...

Public Attributes

double x1
 
double y1
 
double x2
 
double y2
 

Friends

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

Detailed Description

Auxiliary data structure for line.

Definition at line 18 of file JLine.cc.

Friends And Related Symbol Documentation

◆ operator>>

std::istream & operator>> ( std::istream & in,
JLine & line )
friend

Read line from input stream.

Parameters
ininput stream
lineline
Returns
input stream

Definition at line 27 of file JLine.cc.

28 {
29 return in >> line.x1 >> line.y1 >> line.x2 >> line.y2;
30 }
double y2
Definition JLine.cc:47
double x2
Definition JLine.cc:46
double y1
Definition JLine.cc:45
double x1
Definition JLine.cc:44

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const JLine & line )
friend

Write line to output stream.

Parameters
outoutput stream
lineline
Returns
output stream

Definition at line 39 of file JLine.cc.

40 {
41 return out << line.x1 << ' ' << line.y1 << ' ' << line.x2 << ' ' << line.y2;
42 }

Member Data Documentation

◆ x1

double JLine::x1

Definition at line 44 of file JLine.cc.

◆ y1

double JLine::y1

Definition at line 45 of file JLine.cc.

◆ x2

double JLine::x2

Definition at line 46 of file JLine.cc.

◆ y2

double JLine::y2

Definition at line 47 of file JLine.cc.


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