csFixed24 Class Reference
[Geometry utilities]
Encapsulation of a 8.24 fixed-point number.
More...
#include <csgeom/fixed.h>
Public Member Functions | |
| int32 | GetFixed () const |
| Get "raw" fixed point number. | |
| operator int () const | |
| Get integer part. | |
| csFixed24 & | operator+= (const csFixed24 &x) |
| Add a fixed point number to another. | |
| csFixed24 & | operator= (float f) |
| Assign floating point number. | |
Friends | |
| csFixed24 | operator * (const csFixed24 &v1, float v2) |
| Multiply a fixed point number with a float, result is fixed. | |
| csFixed24 | operator- (const csFixed24 &v1, float v2) |
| Subtract a float number from a fixed point, result is fixed. | |
| csFixed24 | operator- (float v1, const csFixed24 &v2) |
| Subtract a fixed point number from a float, result is fixed. | |
| csFixed24 | operator- (const csFixed24 &v1, const csFixed24 &v2) |
| Subtract two fixed point numbers. | |
Detailed Description
Encapsulation of a 8.24 fixed-point number.
- Todo:
- More operators.
Definition at line 108 of file fixed.h.
Member Function Documentation
|
|
Get "raw" fixed point number.
|
|
|
Get integer part.
|
|
|
Add a fixed point number to another.
Definition at line 154 of file fixed.h. References v. |
|
|
Assign floating point number.
Definition at line 113 of file fixed.h. References csQfixed24(). |
Friends And Related Function Documentation
|
||||||||||||
|
Multiply a fixed point number with a float, result is fixed.
|
|
||||||||||||
|
Subtract a float number from a fixed point, result is fixed.
|
|
||||||||||||
|
Subtract a fixed point number from a float, result is fixed.
|
|
||||||||||||
|
Subtract two fixed point numbers.
|
The documentation for this class was generated from the following file:
- csgeom/fixed.h
Generated for Crystal Space by doxygen 1.4.6
