uLib  User mode C/C++ extended API library for Win32 programmers.

#include <uLib/Fixed.hpp>

Inheritance diagram for Fixed:

Detailed Description

Fixed provides a basic arithmetics implementation for 16.16 fixed point math.
It descends from FIXED, so Fixed values can be assigned to FIXED variables.

Definition at line 30 of file Fixed.hpp.

Public Functions

 Fixed (void)
 
 Fixed (const float val)
 
 Fixed (const Fixed &val)
 
 operator float () const
 
Fixedoperator= (const short val)
 
Fixedoperator= (const Fixed &val)
 
Fixedoperator= (const FIXED &val)
 
Fixedoperator= (const float val)
 
Fixedoperator+= (const short rhs)
 
Fixedoperator -= (const short rhs)
 
Fixedoperator *= (const short rhs)
 
Fixedoperator/= (const short rhs)
 
Fixedoperator %= (const short rhs)
 
Fixedoperator+= (const Fixed &rhs)
 
Fixedoperator -= (const Fixed &rhs)
 
Fixedoperator *= (const Fixed &rhs)
 
Fixedoperator/= (const Fixed &rhs)
 
Fixedoperator %= (const Fixed &rhs)
 
Fixed operator+ (const Fixed &rhs) const
 
Fixed operator - (const Fixed &rhs) const
 
Fixed operator * (const Fixed &rhs) const
 
Fixed operator/ (const Fixed &rhs) const
 
Fixed operator % (const Fixed &rhs) const
 
Fixed operator+ (const short rhs) const
 
Fixed operator - (const short rhs) const
 
Fixed operator * (const short rhs) const
 
Fixed operator/ (const short rhs) const
 
Fixed operator % (const short rhs) const
 

Constructor & Destructor Documentation

◆ Fixed() [1/3]

Fixed::Fixed ( void  )
inline

Definition at line 41 of file Fixed.hpp.

◆ Fixed() [2/3]

Fixed::Fixed ( const float  val)
inline

Definition at line 42 of file Fixed.hpp.

◆ Fixed() [3/3]

Fixed::Fixed ( const Fixed val)
inline

Definition at line 43 of file Fixed.hpp.

Member Function Documentation

◆ operator float()

Fixed::operator float ( ) const
inline

Definition at line 46 of file Fixed.hpp.

◆ operator=() [1/4]

Fixed& Fixed::operator= ( const short  val)
inline

Definition at line 48 of file Fixed.hpp.

◆ operator=() [2/4]

Fixed& Fixed::operator= ( const Fixed val)
inline

Definition at line 49 of file Fixed.hpp.

◆ operator=() [3/4]

Fixed& Fixed::operator= ( const FIXED &  val)
inline

Definition at line 50 of file Fixed.hpp.

◆ operator=() [4/4]

Fixed& Fixed::operator= ( const float  val)
inline

Definition at line 51 of file Fixed.hpp.

◆ operator+=() [1/2]

Fixed& Fixed::operator+= ( const short  rhs)
inline

Definition at line 53 of file Fixed.hpp.

◆ operator -=() [1/2]

Fixed& Fixed::operator -= ( const short  rhs)
inline

Definition at line 54 of file Fixed.hpp.

◆ operator *=() [1/2]

Fixed& Fixed::operator *= ( const short  rhs)
inline

Definition at line 55 of file Fixed.hpp.

◆ operator/=() [1/2]

Fixed& Fixed::operator/= ( const short  rhs)
inline

Definition at line 56 of file Fixed.hpp.

◆ operator %=() [1/2]

Fixed& Fixed::operator %= ( const short  rhs)
inline

Definition at line 57 of file Fixed.hpp.

◆ operator+=() [2/2]

Fixed& Fixed::operator+= ( const Fixed rhs)
inline

Definition at line 59 of file Fixed.hpp.

◆ operator -=() [2/2]

Fixed& Fixed::operator -= ( const Fixed rhs)
inline

Definition at line 60 of file Fixed.hpp.

◆ operator *=() [2/2]

Fixed& Fixed::operator *= ( const Fixed rhs)
inline

Definition at line 61 of file Fixed.hpp.

◆ operator/=() [2/2]

Fixed& Fixed::operator/= ( const Fixed rhs)
inline

Definition at line 62 of file Fixed.hpp.

◆ operator %=() [2/2]

Fixed& Fixed::operator %= ( const Fixed rhs)
inline

Definition at line 63 of file Fixed.hpp.

◆ operator+() [1/2]

Fixed Fixed::operator+ ( const Fixed rhs) const
inline

Definition at line 65 of file Fixed.hpp.

◆ operator -() [1/2]

Fixed Fixed::operator - ( const Fixed rhs) const
inline

Definition at line 66 of file Fixed.hpp.

◆ operator *() [1/2]

Fixed Fixed::operator * ( const Fixed rhs) const
inline

Definition at line 67 of file Fixed.hpp.

◆ operator/() [1/2]

Fixed Fixed::operator/ ( const Fixed rhs) const
inline

Definition at line 68 of file Fixed.hpp.

◆ operator %() [1/2]

Fixed Fixed::operator % ( const Fixed rhs) const
inline

Definition at line 69 of file Fixed.hpp.

◆ operator+() [2/2]

Fixed Fixed::operator+ ( const short  rhs) const
inline

Definition at line 71 of file Fixed.hpp.

◆ operator -() [2/2]

Fixed Fixed::operator - ( const short  rhs) const
inline

Definition at line 72 of file Fixed.hpp.

◆ operator *() [2/2]

Fixed Fixed::operator * ( const short  rhs) const
inline

Definition at line 73 of file Fixed.hpp.

◆ operator/() [2/2]

Fixed Fixed::operator/ ( const short  rhs) const
inline

Definition at line 74 of file Fixed.hpp.

◆ operator %() [2/2]

Fixed Fixed::operator % ( const short  rhs) const
inline

Definition at line 75 of file Fixed.hpp.


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