globals.c File Reference

#include "common.h"
#include <math.h>
#include "vmath.h"
#include "bn.h"
Include dependency graph for globals.c:

Go to the source code of this file.

Variables

const float bn_rand_table []
double bn_sin_scale
const float bn_sin_table []
int bn_randhalftabsize
float bn_rand_halftab []
float bn_rand_poison_ []
int * tp_cindex []
int tp_ctable []
const fastf_t bn_pi = M_PI
const fastf_t bn_twopi = 2.0 * M_PI
const fastf_t bn_halfpi = M_PI_2
const fastf_t bn_quarterpi = M_PI_4
const fastf_t bn_invpi = M_1_PI
const fastf_t bn_inv2pi = 1.0 / (2.0 * M_PI)
const fastf_t bn_inv4pi = 1.0 / (4.0 * M_PI)
const fastf_t bn_inv255 = 1.0 / 255.0
const fastf_t bn_degtorad = DEG2RAD
const fastf_t bn_radtodeg = RAD2DEG

Detailed Description

Global variables in LIBBN.

New global variables are discouraged and refactoring in ways that eliminates existing global variables without reducing functionality is always encouraged.

Definition in file globals.c.


Variable Documentation

int* tp_cindex[]

Definition at line 57 of file vectfont.c.

Referenced by bn_vlist_3string(), tp_3symbol(), and tp_setup().

int tp_ctable[]

Definition at line 87 of file vectfont.c.

Referenced by tp_setup().

const fastf_t bn_quarterpi = M_PI_4

pi/4

Definition at line 67 of file globals.c.

const fastf_t bn_inv4pi = 1.0 / (4.0 * M_PI)

1/(pi*4)

Definition at line 80 of file globals.c.

Generated on Tue Dec 11 13:14:28 2012 for LIBBN by  doxygen 1.6.3