Utilities

Utilities — Assorted macros and functions

Synopsis

#define             CPML_GNUC_CONST
double              cpml_angle                          (double angle);

Description

Collection of macros and functions that do not fit inside any other topic.

Details

CPML_GNUC_CONST

#define             CPML_GNUC_CONST

To be appended at the end of a function to notice the compiler (gcc) that the return value is constant.

The coded is an adaptation of the G_GNUC_CONST macro defined by glib-2.18.3 in glib/gmacros.h.


cpml_angle ()

double              cpml_angle                          (double angle);

Normalizes angle, that is returns the equivalent radians value between the range M_PI (inclusive) and -M_PI (exclusive).

angle :

an angle in radians

Returns :

an equivalent value in radians
Utilities was last modified by gtk-doc on Mon 05 Jul 2010 11:11:52 PM CEST
Hosted by Get Automatic Drawing Generation at SourceForge.net. Fast, secure and Free Open Source software downloads
Search on this domain