g4tools  5.4.0
Public Member Functions | List of all members
tools::cmp_colorf Struct Reference

Public Member Functions

bool operator() (const colorf &a_a, const colorf &a_b) const
 

Detailed Description

Definition at line 144 of file colorf.

Member Function Documentation

◆ operator()()

bool tools::cmp_colorf::operator() ( const colorf a_a,
const colorf a_b 
) const
inline

Definition at line 145 of file colorf.

145  {
146  // x :
147  if(a_a.v0()<a_b.v0()) return true;
148  if(a_a.v0()>a_b.v0()) return false;
149  // y :
150  if(a_a.v1()<a_b.v1()) return true;
151  if(a_a.v1()>a_b.v1()) return false;
152  // z :
153  if(a_a.v2()<a_b.v2()) return true;
154  return false;
155  }

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