Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
myers::Crossing Class Reference

#include <Myers.h>

Public Member Functions

 Crossing (const Segment &s0, const Segment &s1)
 

Friends

bool operator< (const Crossing &c0, const Crossing &c1)
 
bool operator== (const Crossing &c0, const Crossing &c1)
 

Detailed Description

Definition at line 84 of file Myers.h.

Constructor & Destructor Documentation

◆ Crossing()

myers::Crossing::Crossing ( const Segment s0,
const Segment s1 
)
inline

Definition at line 86 of file Myers.h.

86: Crossing{std::minmax(s0, s1)} {}
Crossing(const Segment &s0, const Segment &s1)
Definition Myers.h:86

Friends And Related Symbol Documentation

◆ operator<

bool operator< ( const Crossing c0,
const Crossing c1 
)
friend

Definition at line 99 of file Myers.h.

99 {
100 return std::tie(c0.fHigher, c0.fLower) < std::tie(c1.fHigher, c1.fLower);
101}

◆ operator==

bool operator== ( const Crossing c0,
const Crossing c1 
)
friend

Definition at line 103 of file Myers.h.

103 {
104 return std::tie(c0.fHigher, c0.fLower) == std::tie(c1.fHigher, c1.fLower);
105}

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