CrystalSpace

Public API Reference

Functions
csqint.h File Reference

Quick floating point to integer conversions. More...

Go to the source code of this file.

Functions

static long csQfixed16 (float n)
 Quickly convert a floating-point number to 16.16 fixed-point value.
static long csQfixed24 (float n)
 Quickly convert a floating-point number to 8.24 fixed-point value.
static long csQfixed8 (float n)
 Quickly convert a floating-point number to 24.8 fixed-point value.
template<typename T >
static long csQint (T n)
 Quickly truncate the fractional part of a floating-point value and convert it to a long integer using processor and/or number format quirks if available.
template<typename T >
static long csQround (T n)
 Quickly round a floating-point value and convert it to a long integer using processor and/or number format quirks if available.

Detailed Description

Quick floating point to integer conversions.

Definition in file csqint.h.


Generated for Crystal Space 2.0 by doxygen 1.7.6.1