Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Public Attributes | List of all members
GrAATriangulator::EventComparator Struct Reference

#include <GrAATriangulator.h>

Public Types

enum class  Op { kLessThan , kGreaterThan }
 

Public Member Functions

 EventComparator (Op op)
 
bool operator() (Event *const &e1, Event *const &e2)
 

Public Attributes

Op fOp
 

Detailed Description

Definition at line 54 of file GrAATriangulator.h.

Member Enumeration Documentation

◆ Op

Enumerator
kLessThan 
kGreaterThan 

Definition at line 55 of file GrAATriangulator.h.

55{ kLessThan, kGreaterThan };

Constructor & Destructor Documentation

◆ EventComparator()

GrAATriangulator::EventComparator::EventComparator ( Op  op)
inline

Definition at line 56 of file GrAATriangulator.h.

Member Function Documentation

◆ operator()()

bool GrAATriangulator::EventComparator::operator() ( Event *const &  e1,
Event *const &  e2 
)
inline

Definition at line 57 of file GrAATriangulator.h.

57 {
58 return fOp == Op::kLessThan ? e1->fAlpha < e2->fAlpha
59 : e1->fAlpha > e2->fAlpha;
60 }
float e1

Member Data Documentation

◆ fOp

Op GrAATriangulator::EventComparator::fOp

Definition at line 61 of file GrAATriangulator.h.


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