#include <OSGFixed.h>
Public Member Functions | |
| Fixed32 (void) | |
| Fixed32 (const Real32 source) | |
| Fixed32 (const UInt32 source) | |
| Fixed32 (const Fixed32 &source) | |
| ~Fixed32 (void) | |
| Fixed32 | operator- () const |
| void | setFixedValue (Int32 src) |
| Fixed32 & | operator= (const Fixed32 rhs) |
| Fixed32 & | operator+= (const Fixed32 rhs) |
| Fixed32 & | operator-= (const Fixed32 rhs) |
| Fixed32 & | operator *= (const Fixed32 rhs) |
| Fixed32 & | operator/= (const Fixed32 rhs) |
| Fixed32 | operator+ (const Fixed32 rhs) const |
| Fixed32 | operator- (const Fixed32 rhs) const |
| Fixed32 | operator * (const Fixed32 rhs) const |
| Fixed32 | operator/ (const Fixed32 rhs) const |
| bool | operator== (const Fixed32 rhs) const |
| bool | operator!= (const Fixed32 rhs) const |
| bool | operator< (const Fixed32 rhs) const |
| bool | operator> (const Fixed32 rhs) const |
| bool | operator<= (const Fixed32 rhs) const |
| bool | operator>= (const Fixed32 rhs) const |
| Int32 | getValue (void) const |
| void | setValue (Int32 iVal) |
Static Public Member Functions | |
| static Fixed32 | abs (Fixed32 rhs) |
| static Fixed32 | sqrt (Fixed32 rhs) |
| static Fixed32 | sin (Fixed32 rhs) |
| static Fixed32 | cos (Fixed32 rhs) |
| static Fixed32 | tan (Fixed32 rhs) |
Protected Member Functions | |
| Fixed32 (const Int32 source) | |
Static Protected Member Functions | |
| static Real32 | toFloat (Fixed32 rhs) |
Private Attributes | |
| Int32 | _value |
Definition at line 46 of file OSGFixed.h.
| Fixed32::Fixed32 | ( | void | ) | [inline] |
| Fixed32::Fixed32 | ( | const Real32 | source | ) | [inline] |
Definition at line 53 of file OSGFixed.inl.
00053 : 00054 _value(Int32(source * 65536.0f)) 00055 { 00056 00057 }
| Fixed32::Fixed32 | ( | const UInt32 | source | ) | [inline] |
| Fixed32::Fixed32 | ( | const Fixed32 & | source | ) | [inline] |
| Fixed32::~Fixed32 | ( | void | ) | [inline] |
| Fixed32::Fixed32 | ( | const Int32 | source | ) | [inline, protected] |
| Fixed32 Fixed32::operator- | ( | ) | const [inline] |
| void Fixed32::setFixedValue | ( | Int32 | src | ) | [inline] |
| bool Fixed32::operator== | ( | const Fixed32 | rhs | ) | const [inline] |
| bool Fixed32::operator!= | ( | const Fixed32 | rhs | ) | const [inline] |
| bool Fixed32::operator< | ( | const Fixed32 | rhs | ) | const [inline] |
| bool Fixed32::operator> | ( | const Fixed32 | rhs | ) | const [inline] |
| bool Fixed32::operator<= | ( | const Fixed32 | rhs | ) | const [inline] |
| bool Fixed32::operator>= | ( | const Fixed32 | rhs | ) | const [inline] |
| Int32 Fixed32::getValue | ( | void | ) | const [inline] |
Definition at line 223 of file OSGFixed.inl.
References _value.
Referenced by OSG::OutStream::operator<<().
00224 { 00225 return _value; 00226 }
| void Fixed32::setValue | ( | Int32 | iVal | ) | [inline] |
Definition at line 235 of file OSGFixed.inl.
References _value.
Referenced by OSG::osgAbs().
00236 { 00237 Fixed32 returnValue; 00238 00239 returnValue._value = (rhs._value > 0 ? rhs._value : - rhs._value); 00240 00241 return returnValue; 00242 }
Definition at line 251 of file OSGFixed.inl.
References toFloat().
Referenced by OSG::osgSqrt().
00252 { 00253 Fixed32 returnValue((Real32(std::sqrt(Fixed32::toFloat(rhs))))); 00254 00255 return returnValue; 00256 }
Definition at line 259 of file OSGFixed.inl.
References toFloat().
Referenced by OSG::osgSin().
00260 { 00261 Fixed32 returnValue((Real32(std::sin(Fixed32::toFloat(rhs))))); 00262 00263 return returnValue; 00264 }
Definition at line 267 of file OSGFixed.inl.
References toFloat().
Referenced by OSG::osgCos().
00268 { 00269 Fixed32 returnValue((Real32(std::cos(Fixed32::toFloat(rhs))))); 00270 00271 return returnValue; 00272 }
Definition at line 275 of file OSGFixed.inl.
References toFloat().
Referenced by OSG::osgTan().
00276 { 00277 Fixed32 returnValue((Real32(std::tan(Fixed32::toFloat(rhs))))); 00278 00279 return returnValue; 00280 }
| Real32 Fixed32::toFloat | ( | Fixed32 | rhs | ) | [inline, static, protected] |
Int32 Fixed32::_value [private] |
Definition at line 112 of file OSGFixed.h.
Referenced by abs(), getValue(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), setFixedValue(), setValue(), and toFloat().