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

Public Functions

bool isValid () const
 
bool operator!= (const QFraction &other) const
 
bool operator< (const QFraction &other) const
 
bool operator<= (const QFraction &other) const
 
bool operator== (const QFraction &other) const
 
bool operator> (const QFraction &other) const
 
bool operator>= (const QFraction &other) const
 

Public Variables

quint64 denominator
 
quint64 numerator
 

Detailed Description

Definition at line 207 of file qtriangulator.cpp.

Functions

◆ isValid()

bool QFraction::isValid ( ) const
inline

Definition at line 217 of file qtriangulator.cpp.

Referenced by qIntersectionPoint().

217 {return denominator != 0;}
quint64 denominator

◆ operator!=()

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

Definition at line 212 of file qtriangulator.cpp.

212 {return !(*this == other);}

◆ operator<()

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

Definition at line 283 of file qtriangulator.cpp.

284 {
285  return qCompareFractions(numerator, denominator, other.numerator, other.denominator) < 0;
286 }
quint64 denominator
static int qCompareFractions(quint64 a, quint64 b, quint64 c, quint64 d)
quint64 numerator

◆ operator<=()

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

Definition at line 215 of file qtriangulator.cpp.

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

◆ operator==()

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

Definition at line 288 of file qtriangulator.cpp.

289 {
290  return numerator == other.numerator && denominator == other.denominator;
291 }
quint64 denominator
quint64 numerator

◆ operator>()

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

Definition at line 213 of file qtriangulator.cpp.

213 {return other < *this;}

◆ operator>=()

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

Definition at line 214 of file qtriangulator.cpp.

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

Properties

◆ denominator

quint64 QFraction::denominator

Definition at line 220 of file qtriangulator.cpp.

Referenced by operator<(), operator==(), and qFraction().

◆ numerator

quint64 QFraction::numerator

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