RAVENNAKIT
Loading...
Searching...
No Matches
rav::Fraction< T > Struct Template Reference

Little tiny struct to represent a fraction without loss. More...

#include <fraction.hpp>

Public Attributes

T numerator
T denominator

Friends

bool operator== (const Fraction &lhs, const Fraction &rhs)
bool operator!= (const Fraction &lhs, const Fraction &rhs)

Detailed Description

template<class T>
struct rav::Fraction< T >

Little tiny struct to represent a fraction without loss.

Template Parameters
TThe type of the numerator and denominator.

Definition at line 36 of file fraction.hpp.

◆ operator!=

template<class T>
bool operator!= ( const Fraction< T > & lhs,
const Fraction< T > & rhs )
friend

Definition at line 44 of file fraction.hpp.

◆ operator==

template<class T>
bool operator== ( const Fraction< T > & lhs,
const Fraction< T > & rhs )
friend

Definition at line 40 of file fraction.hpp.

Member Data Documentation

◆ denominator

template<class T>
T rav::Fraction< T >::denominator

Definition at line 38 of file fraction.hpp.

◆ numerator

template<class T>
T rav::Fraction< T >::numerator

Definition at line 37 of file fraction.hpp.


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