TFloatFixPt Class Reference

class TFloatFixPt

Implementation of a real number using 16.16 bits.

Gfx2D.lib
Since
1.0

Constructor & Destructor Documentation

TFloatFixPt()

TFloatFixPt()[inline]

Construct a TFixPt. The default value is 0.0.

Since
1.0

TFloatFixPt(TInt)

TFloatFixPt(TIntaVal)[inline]

Construct a TFixPt from the given integer value.

Since
1.0

Parameters

TInt aVal: integer value

TFloatFixPt(TInt32)

TFloatFixPt(TInt32aVal)[inline]

Construct a TFixPt from the given integer value.

Since
1.0

Parameters

TInt32 aVal: integer value

TFloatFixPt(TInt, TBool)

TFloatFixPt(TIntaVal,
TBoolaBool
)[inline]

Construct a TFixPt from the given real 32-bit int.

Since
1.0

Parameters

TInt aVal: integer value
TBool aBool: not used.

TFloatFixPt(TReal32)

TFloatFixPt(TReal32aVal)[inline]

Construct a TFixPt from the given TReal32.

Since
1.0

Parameters

TReal32 aVal: value to copy from

TFloatFixPt(const TFloatFixPt &)

TFloatFixPt(const TFloatFixPt &aFixpt)[inline]

Construct a TFixPt from the given TFixPt.

Since
1.0

Parameters

const TFloatFixPt & aFixpt: value to copy from

Member Functions Documentation

Abs(TFloatFixPt &)

TFloatFixPt Abs(TFloatFixPt &aValue)

Return the absolute value for the given number.

Since
1.0

Parameters

TFloatFixPt & aValue: real number to find absolute value

ConvertString(const TDesC &)

TFloatFixPt ConvertString(const TDesC &aVal)[static]

Parse the given string for a TFixPt.

Since
1.0

Parameters

const TDesC & aVal: string containing a real number.

ConvertString(const TDesC &, TFloatFixPt &)

TInt ConvertString(const TDesC &aValueString,
TFloatFixPt &aValue
)[static]

Parse the given string for a TFixPt.

Since
1.0

Parameters

const TDesC & aValueString
TFloatFixPt & aValue

FixedSqrtGeneral(TInt32, TUint32)

TInt32 FixedSqrtGeneral(TInt32aValue,
TUint32aFracbits
)[static]

Return the square root value for the given number.

Since
1.0

Parameters

TInt32 aValue: 32-bit representation of real number
TUint32 aFracbits

FracAsInt()

TInt32 FracAsInt()[inline]

Return the fractional portion as an int representation.

Since
1.0

GetString(TDes &)

voidGetString(TDes &aBuf)const

Get the string representation of this real number.

Since
1.0

Parameters

TDes & aBuf

GfxMultiplyAsm(TInt)

voidGfxMultiplyAsm(TIntaValue)[private, inline]

Optimized method to do multiplication using assembly.

Since
1.0

Parameters

TInt aValue: real number to find multiply with

RawData()

TInt32 RawData()[inline]

Return the 32-bit data for this TFixPt.

Since
1.0

Round()

TInt32 Round()[inline]

Return the number rounded to the next whole number.

Since
1.0

Sqrt(TFloatFixPt)

TFloatFixPt Sqrt(TFloatFixPtaValue)[static]

Return the square root value for this number.

Since
1.0

Parameters

TFloatFixPt aValue: real number to find square root

operator TInt()

operator TInt()const [inline]

Casting operator to TInt.

Since
1.0

operator TInt32()

operator TInt32()const [inline]

Casting operator to TInt32.

Since
1.0

operator TReal32()

operator TReal32()const [inline]

Casting operator to TReal32.

Since
1.0

operator!=(const TFloatFixPt &)

TInt operator!=(const TFloatFixPt &aVal)const [inline]

Not Equals operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to compare.

operator*(const TFloatFixPt &)

TFloatFixPt operator*(const TFloatFixPt &aVal)const [inline]

Multiplication operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to multiply with.

operator*=(const TFloatFixPt &)

TFloatFixPt &operator*=(const TFloatFixPt &aVal)[inline]

Multiplication assignment operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to multiply with.

operator+(const TFloatFixPt &)

TFloatFixPt operator+(const TFloatFixPt &aVal)const [inline]

Addition operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to add with.

operator+=(const TFloatFixPt &)

TFloatFixPt &operator+=(const TFloatFixPt &aVal)[inline]

Addition assignment operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to add with.

operator-(const TFloatFixPt &)

TFloatFixPt operator-(const TFloatFixPt &aVal)const [inline]

Subtraction operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to subtract.

operator-=(const TFloatFixPt &)

TFloatFixPt &operator-=(const TFloatFixPt &aVal)[inline]

Subtraction assignment operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to substract.

operator/(const TFloatFixPt &)

TFloatFixPt operator/(const TFloatFixPt &aVal)const [inline]

Division operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to divide with.

operator/=(const TFloatFixPt &)

TFloatFixPt &operator/=(const TFloatFixPt &aVal)[inline]

Division assignment operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to divide with.

operator<(const TFloatFixPt &)

TInt operator<(const TFloatFixPt &aVal)const [inline]

Less than operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to compare.

operator<<(const TInt)

TFloatFixPt operator<<(const TIntaN)const [inline]

Operator to left shift

Since
1.0

Parameters

const TInt aN: bits to be shifted.

operator<=(const TFloatFixPt &)

TInt operator<=(const TFloatFixPt &aVal)const [inline]

Less than or equal to operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to compare.

operator=(TInt32)

TFloatFixPt &operator=(TInt32aVal)[inline]

Assignment operator.

Since
1.0

Parameters

TInt32 aVal: value to assign from.

operator=(TInt)

TFloatFixPt &operator=(TIntaVal)[inline]

Assignment operator.

Since
1.0

Parameters

TInt aVal: value to assign from.

operator=(TReal32)

TFloatFixPt &operator=(TReal32aVal)[inline]

Assignment operator.

Since
1.0

Parameters

TReal32 aVal: value to assign from.

operator==(const TFloatFixPt &)

TInt operator==(const TFloatFixPt &aVal)const [inline]

Equal operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to compare.

operator>(const TFloatFixPt &)

TInt operator>(const TFloatFixPt &aVal)const [inline]

Greater than operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to compare.

operator>=(const TFloatFixPt &)

TInt operator>=(const TFloatFixPt &aVal)const [inline]

Greater than or equal to operator.

Since
1.0

Parameters

const TFloatFixPt & aVal: value to compare.

operator>>(const TInt)

TFloatFixPt operator>>(const TIntaN)const [inline]

operator to right shift.

Since
1.0

Parameters

const TInt aN

Member Data Documentation

TInt iValue

TInt iValue