Panda3D
Static Public Member Functions | Static Public Attributes
MathNumbers Class Reference

List of all members.

Static Public Member Functions

static float cln2 (float)
 Returns ln(2) as a single-precision or double-precision number, according to the type of the parameter.
static double cln2 (double)
 Returns ln(2) as a single-precision or double-precision number, according to the type of the parameter.
static float cpi (float)
 Returns pi as a single-precision or double-precision number, according to the type of the parameter.
static double cpi (double)
 Returns pi as a single-precision or double-precision number, according to the type of the parameter.

Static Public Attributes

static const PN_stdfloat deg_2_rad = MathNumbers::pi_d / 180.0
static const double deg_2_rad_d = MathNumbers::pi_d / 180.0
static const float deg_2_rad_f = MathNumbers::pi_d / 180.0
static const PN_stdfloat ln2 = log(2.0)
static const double ln2_d = log(2.0)
static const float ln2_f = log(2.0)
static const PN_stdfloat pi = 4.0 * atan(1.0)
static const double pi_d = 4.0 * atan(1.0)
static const float pi_f = 4.0 * atan(1.0)
static const PN_stdfloat rad_2_deg = 180.0 / MathNumbers::pi_d
static const double rad_2_deg_d = 180.0 / MathNumbers::pi_d
static const float rad_2_deg_f = 180.0 / MathNumbers::pi_d

Detailed Description

Definition at line 20 of file mathNumbers.h.


Member Function Documentation

float MathNumbers::cln2 ( float  ) [inline, static]

Returns ln(2) as a single-precision or double-precision number, according to the type of the parameter.

Definition at line 34 of file mathNumbers.I.

double MathNumbers::cln2 ( double  ) [inline, static]

Returns ln(2) as a single-precision or double-precision number, according to the type of the parameter.

Definition at line 56 of file mathNumbers.I.

float MathNumbers::cpi ( float  ) [inline, static]

Returns pi as a single-precision or double-precision number, according to the type of the parameter.

Definition at line 23 of file mathNumbers.I.

double MathNumbers::cpi ( double  ) [inline, static]

Returns pi as a single-precision or double-precision number, according to the type of the parameter.

Definition at line 45 of file mathNumbers.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations