|
CartoType API
|
#include <cartotype_arithmetic.h>
Public Types | |
| enum | TRaw { ERaw } |
Public Member Functions | |
| TFixedSmall () | |
| TFixedSmall (int32 aValue) | |
| TFixedSmall (int32 aValue, int32 aFractionalBits) | |
| TFixedSmall (int32 aValue, TRaw) | |
| TFixedSmall (const TFixed &aFixed) | |
| int32 | RawValue () const |
| void | SetRawValue (int32 aRawValue) |
| bool | operator== (TFixedSmall aFixed) const |
| bool | operator!= (TFixedSmall aFixed) const |
| bool | operator< (TFixedSmall aFixed) const |
| bool | operator<= (TFixedSmall aFixed) const |
| bool | operator> (TFixedSmall aFixed) const |
| bool | operator>= (TFixedSmall aFixed) const |
| int32 | Rounded () const |
| int32 | Floor () const |
| int32 | Ceiling () const |
| TFixedSmall | operator+ (TFixedSmall aFixed) const |
| void | operator+= (TFixedSmall aFixed) |
| TFixedSmall | operator- (TFixedSmall aFixed) const |
| void | operator-= (TFixedSmall aFixed) |
| CT_IMPORT void | operator*= (TFixedSmall aFixed) |
| TFixedSmall | operator* (TFixedSmall aFixed) const |
| void | operator*= (int32 aInt) |
| TFixedSmall | operator* (int32 aInt) const |
| CT_IMPORT void | operator/= (TFixedSmall aFixed) |
| TFixedSmall | operator/ (TFixedSmall aFixed) const |
| void | operator/= (int32 aInt) |
| TFixedSmall | operator/ (int32 aInt) const |
| TFixedSmall | operator- () const |
| CT_IMPORT TFixedSmall | Sqrt () const |
| CT_IMPORT TFixedSmall | Atanh () const |
| CT_IMPORT TFixedSmall | Ln () const |
| CT_IMPORT TFixedSmall | Exp () const |
| CT_IMPORT TFixedSmall | Atan () const |
| CT_IMPORT TFixedSmall | Asin () const |
| CT_IMPORT TFixedSmall | Acos () const |
| CT_IMPORT TFixedSmall | Sin () const |
| CT_IMPORT TFixedSmall | Cos () const |
| CT_IMPORT TFixedSmall | Tan () const |
| CT_IMPORT TFixed | ToDegrees () const |
| CT_IMPORT TFixedSmall | AngleDiff (TFixedSmall aAngle) const |
Static Public Member Functions | |
| static CT_IMPORT TFixedSmall | Pi () |
| static CT_IMPORT TFixedSmall | HalfPi () |
A fixed-point number consisting of a 5-bit integer plus 27 fractional bits.
A dummy type allowing construction of a TFixedSmall from a raw value.
| CartoType::TFixedSmall::TFixedSmall | ( | ) | [inline] |
Construct a TFixedSmall with the value zero.
| CartoType::TFixedSmall::TFixedSmall | ( | int32 | aValue | ) | [inline] |
Construct a TFixedSmall from an integer.
| CartoType::TFixedSmall::TFixedSmall | ( | int32 | aValue, |
| int32 | aFractionalBits | ||
| ) | [inline] |
Construct a TFixedSmall from a value with 0...27 fractional bits.
| CartoType::TFixedSmall::TFixedSmall | ( | int32 | aValue, |
| TRaw | |||
| ) | [inline] |
Construct a TFixedSmall from a raw value.
| CartoType::TFixedSmall::TFixedSmall | ( | const TFixed & | aFixed | ) | [inline] |
Construct a TFixedSmall from a TFixed, ignoring overflows
| CT_EXPORT TFixedSmall TFixedSmall::Acos | ( | ) | const |
Return the arc-cosine in radians of a TFixedSmall value.
| CT_EXPORT TFixedSmall TFixedSmall::AngleDiff | ( | TFixedSmall | aAngle | ) | const |
Return the difference between two angles. The result, expressed in radians, is the angular distance swept out when moving the angle to aAngle by the shortest route, and thus is in the range -pi ... pi.
| CT_EXPORT TFixedSmall TFixedSmall::Asin | ( | ) | const |
Return the arc-sine in radians of a TFixedSmall value.
| CT_EXPORT TFixedSmall TFixedSmall::Atan | ( | ) | const |
Return the arctangent of a fixed-point value.
| CT_EXPORT TFixedSmall TFixedSmall::Atanh | ( | ) | const |
Return the hyperbolic arctangent of a fixed-point value.
| int32 CartoType::TFixedSmall::Ceiling | ( | ) | const [inline] |
Return the nearest integer value at or above the actual value.
| CT_EXPORT TFixedSmall TFixedSmall::Cos | ( | ) | const |
Return the cosine of a TFixedSmall value taken as radians.
| CT_EXPORT TFixedSmall TFixedSmall::Exp | ( | ) | const |
Return the exponent (antilogarithm) of a fixed-point value.
| int32 CartoType::TFixedSmall::Floor | ( | ) | const [inline] |
Return the nearest integer value at or below the actual value.
| CT_EXPORT TFixedSmall TFixedSmall::HalfPi | ( | ) | [static] |
Return the constant pi/2 as a TFixedSmall value.
| CT_EXPORT TFixedSmall TFixedSmall::Ln | ( | ) | const |
Return the natural logarithm of a fixed-point value.
| bool CartoType::TFixedSmall::operator!= | ( | TFixedSmall | aFixed | ) | const [inline] |
The inequality operator.
| TFixedSmall CartoType::TFixedSmall::operator* | ( | TFixedSmall | aFixed | ) | const [inline] |
Multiply by a TFixedSmall value.
| TFixedSmall CartoType::TFixedSmall::operator* | ( | int32 | aInt | ) | const [inline] |
Multiply by an integer.
| CT_EXPORT void TFixedSmall::operator*= | ( | TFixedSmall | aB | ) |
An assignment operator to multiply one TFixedSmall value by another.
| void CartoType::TFixedSmall::operator*= | ( | int32 | aInt | ) | [inline] |
An assignment operator to multiply by an integer.
| TFixedSmall CartoType::TFixedSmall::operator+ | ( | TFixedSmall | aFixed | ) | const [inline] |
Add a TFixedSmall value.
| void CartoType::TFixedSmall::operator+= | ( | TFixedSmall | aFixed | ) | [inline] |
Increment by a TFixedSmall value.
| TFixedSmall CartoType::TFixedSmall::operator- | ( | TFixedSmall | aFixed | ) | const [inline] |
Subtract a TFixedSmall value.
| TFixedSmall CartoType::TFixedSmall::operator- | ( | ) | const [inline] |
The unary negation operator.
| void CartoType::TFixedSmall::operator-= | ( | TFixedSmall | aFixed | ) | [inline] |
Decrement by a TFixedSmall value.
| TFixedSmall CartoType::TFixedSmall::operator/ | ( | TFixedSmall | aFixed | ) | const [inline] |
Divide by a TFixedSmall value.
| TFixedSmall CartoType::TFixedSmall::operator/ | ( | int32 | aInt | ) | const [inline] |
Divide by an integer.
| CT_EXPORT void TFixedSmall::operator/= | ( | TFixedSmall | aB | ) |
An assignment operator to divide one TFixedSmall value by another.
Compute result directly if b has no fractional part.
| void CartoType::TFixedSmall::operator/= | ( | int32 | aInt | ) | [inline] |
An assignment operator to divide by an integer.
| bool CartoType::TFixedSmall::operator< | ( | TFixedSmall | aFixed | ) | const [inline] |
The less-than operator.
| bool CartoType::TFixedSmall::operator<= | ( | TFixedSmall | aFixed | ) | const [inline] |
The less-than-or-equal operator.
| bool CartoType::TFixedSmall::operator== | ( | TFixedSmall | aFixed | ) | const [inline] |
The equality operator.
| bool CartoType::TFixedSmall::operator> | ( | TFixedSmall | aFixed | ) | const [inline] |
The greater-than operator.
| bool CartoType::TFixedSmall::operator>= | ( | TFixedSmall | aFixed | ) | const [inline] |
The greater-than-or-equal operator.
| CT_EXPORT TFixedSmall TFixedSmall::Pi | ( | ) | [static] |
Return the constant pi as a TFixedSmall value.
| int32 CartoType::TFixedSmall::RawValue | ( | ) | const [inline] |
Return the value in units of 1/(2^27).
| int32 CartoType::TFixedSmall::Rounded | ( | ) | const [inline] |
Return the value rounded to the nearest unit.
| void CartoType::TFixedSmall::SetRawValue | ( | int32 | aRawValue | ) | [inline] |
Set the value in units of 1/(2^27).
| CT_EXPORT TFixedSmall TFixedSmall::Sin | ( | ) | const |
Return the sine of a TFixedSmall value taken as radians.
| CT_EXPORT TFixedSmall TFixedSmall::Sqrt | ( | ) | const |
Return the square root of a TFixedSmall value. Return 0 if the argument is less than or equal to zero.
| CT_EXPORT TFixedSmall TFixedSmall::Tan | ( | ) | const |
Return the tangent of a TFixedSmall value taken as radians.
| CT_EXPORT TFixed TFixedSmall::ToDegrees | ( | ) | const |
Interpret value as radians and convert to degrees.
1.7.5.1