TFloatFixPt Class Reference
Implementation of a real number using 16.16 bits.
Constructor & Destructor Documentation
TFloatFixPt()
Construct a TFixPt. The default value is 0.0.
TFloatFixPt(TInt)
TFloatFixPt | ( | TInt | aVal | ) | [inline] |
Construct a TFixPt from the given integer value.
TFloatFixPt(TInt32)
TFloatFixPt | ( | TInt32 | aVal | ) | [inline] |
Construct a TFixPt from the given integer value.
TFloatFixPt(TInt, TBool)
Construct a TFixPt from the given real 32-bit int.
Parameters
TInt aVal | : integer value |
TBool aBool | : not used. |
TFloatFixPt(TReal32)
Construct a TFixPt from the given TReal32.
TFloatFixPt(const TFloatFixPt &)
Construct a TFixPt from the given TFixPt.
Member Functions Documentation
Abs(TFloatFixPt &)
Return the absolute value for the given number.
Parameters
TFloatFixPt & aValue | : real number to find absolute value |
ConvertString(const TDesC &)
Parse the given string for a TFixPt.
Parameters
const TDesC & aVal | : string containing a real number. |
ConvertString(const TDesC &, TFloatFixPt &)
Parse the given string for a TFixPt.
FixedSqrtGeneral(TInt32, TUint32)
Return the square root value for the given number.
Parameters
TInt32 aValue | : 32-bit representation of real number |
TUint32 aFracbits | |
FracAsInt()
Return the fractional portion as an int representation.
GetString(TDes &)
void | GetString | ( | TDes & | aBuf | ) | const |
Get the string representation of this real number.
GfxMultiplyAsm(TInt)
void | GfxMultiplyAsm | ( | TInt | aValue | ) | [private, inline] |
Optimized method to do multiplication using assembly.
Parameters
TInt aValue | : real number to find multiply with |
RawData()
Return the 32-bit data for this TFixPt.
Round()
Return the number rounded to the next whole number.
Sqrt(TFloatFixPt)
Return the square root value for this number.
operator TInt()
operator TInt | ( | ) | const [inline] |
Casting operator to TInt.
operator TInt32()
operator TInt32 | ( | ) | const [inline] |
Casting operator to TInt32.
operator TReal32()
operator TReal32 | ( | ) | const [inline] |
Casting operator to TReal32.
operator!=(const TFloatFixPt &)
operator*(const TFloatFixPt &)
operator*=(const TFloatFixPt &)
Multiplication assignment operator.
operator+(const TFloatFixPt &)
operator+=(const TFloatFixPt &)
Addition assignment operator.
operator-(const TFloatFixPt &)
operator-=(const TFloatFixPt &)
Subtraction assignment operator.
operator/(const TFloatFixPt &)
operator/=(const TFloatFixPt &)
Division assignment operator.
operator<(const TFloatFixPt &)
operator<<(const TInt)
Parameters
const TInt aN | : bits to be shifted. |
operator<=(const TFloatFixPt &)
Less than or equal to operator.
operator=(TInt32)
Parameters
TInt32 aVal | : value to assign from. |
operator=(TInt)
Parameters
TInt aVal | : value to assign from. |
operator=(TReal32)
Parameters
TReal32 aVal | : value to assign from. |
operator==(const TFloatFixPt &)
operator>(const TFloatFixPt &)
operator>=(const TFloatFixPt &)
Greater than or equal to operator.
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.