Qt 4.8
Public Functions | Public Variables | List of all members
QPodPoint Struct Reference

Public Functions

bool operator!= (const QPodPoint &other) const
 
QPodPoint operator+ (const QPodPoint &other) const
 
QPodPointoperator+= (const QPodPoint &other)
 
QPodPoint operator- (const QPodPoint &other) const
 
QPodPointoperator-= (const QPodPoint &other)
 
bool operator< (const QPodPoint &other) const
 
bool operator<= (const QPodPoint &other) const
 
bool operator== (const QPodPoint &other) const
 
bool operator> (const QPodPoint &other) const
 
bool operator>= (const QPodPoint &other) const
 

Public Variables

int x
 
int y
 

Detailed Description

Definition at line 297 of file qtriangulator.cpp.

Functions

◆ operator!=()

bool QPodPoint::operator!= ( const QPodPoint other) const
inline

Definition at line 310 of file qtriangulator.cpp.

310 {return x != other.x || y != other.y;}

◆ operator+()

QPodPoint QPodPoint::operator+ ( const QPodPoint other) const
inline

Definition at line 314 of file qtriangulator.cpp.

314 {QPodPoint result = {x + other.x, y + other.y}; return result;}

◆ operator+=()

QPodPoint& QPodPoint::operator+= ( const QPodPoint other)
inline

Definition at line 312 of file qtriangulator.cpp.

312 {x += other.x; y += other.y; return *this;}

◆ operator-()

QPodPoint QPodPoint::operator- ( const QPodPoint other) const
inline

Definition at line 315 of file qtriangulator.cpp.

315 {QPodPoint result = {x - other.x, y - other.y}; return result;}

◆ operator-=()

QPodPoint& QPodPoint::operator-= ( const QPodPoint other)
inline

Definition at line 313 of file qtriangulator.cpp.

313 {x -= other.x; y -= other.y; return *this;}

◆ operator<()

bool QPodPoint::operator< ( const QPodPoint other) const
inline

Definition at line 299 of file qtriangulator.cpp.

300  {
301  if (y != other.y)
302  return y < other.y;
303  return x < other.x;
304  }

◆ operator<=()

bool QPodPoint::operator<= ( const QPodPoint other) const
inline

Definition at line 307 of file qtriangulator.cpp.

307 {return !(*this > other);}

◆ operator==()

bool QPodPoint::operator== ( const QPodPoint other) const
inline

Definition at line 309 of file qtriangulator.cpp.

309 {return x == other.x && y == other.y;}

◆ operator>()

bool QPodPoint::operator> ( const QPodPoint other) const
inline

Definition at line 306 of file qtriangulator.cpp.

306 {return other < *this;}

◆ operator>=()

bool QPodPoint::operator>= ( const QPodPoint other) const
inline

Definition at line 308 of file qtriangulator.cpp.

308 {return !(*this < other);}

Properties

◆ x

int QPodPoint::x

◆ y

int QPodPoint::y

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