MyMath Class Reference

#include <mymath.h>

List of all members.

Public Types

enum  { Expand, Contract, Higher, Lower }

Static Public Member Functions

static void extend (Extension &, Coord)
static void extend (Extension &, const Extension &)
static void minmax (Coord &min, Coord &max)
static boolean inside (Coord x, Coord min, Coord max)
static float min (int count, const float *)
static float max (int count, const float *)
static boolean inside (Coord x, Coord y, Coord left, Coord bottom, Coord right, Coord top)
static boolean near_line (Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2, float epsilon)
static boolean near_line_segment (Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2, float epsilon)
static float distance_to_line_segment (Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2)
static float distance_to_line (Coord x, Coord y, Coord x1, Coord y1, Coord x2, Coord y2)
static float norm2 (Coord x, Coord y)
static boolean unit_normal (Coord x, Coord y, Coord *perp)
static void round_range (Coord x1, Coord x2, double &y1, double &y2, int &ntic)
static void round_range_down (Coord x1, Coord x2, double &y1, double &y2, int &ntic)
static double round (float &x1, float &x2, int direction, int digits)
static void box (Requisition &, Coord &x1, Coord &y1, Coord &x2, Coord &y2)
static double anint (double)
static double resolution (double)
static boolean lt (double x, double y, double e)
static boolean le (double x, double y, double e)
static boolean eq (double x, double y, double e)

Member Enumeration Documentation

anonymous enum
Enumerator:
Expand 
Contract 
Higher 
Lower 

Member Function Documentation

double MyMath::anint ( double  x  )  [static]

Referenced by round_range().

void MyMath::box ( Requisition &  req,
Coord &  x1,
Coord &  y1,
Coord &  x2,
Coord &  y2 
) [static]
float MyMath::distance_to_line ( Coord  x,
Coord  y,
Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2 
) [static]

References d, and norm2().

Here is the call graph for this function:

float MyMath::distance_to_line_segment ( Coord  x,
Coord  y,
Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2 
) [static]

References norm2().

Here is the call graph for this function:

static boolean MyMath::eq ( double  x,
double  y,
double  e 
) [inline, static]
void MyMath::extend ( Extension &  e,
const Extension &  x 
) [inline, static]

References nil.

void MyMath::extend ( Extension &  e,
Coord  x 
) [inline, static]

References nil.

boolean MyMath::inside ( Coord  x,
Coord  y,
Coord  left,
Coord  bottom,
Coord  right,
Coord  top 
) [inline, static]

References inside().

Here is the call graph for this function:

boolean MyMath::inside ( Coord  x,
Coord  min,
Coord  max 
) [inline, static]

Referenced by inside(), and near_line_segment().

static boolean MyMath::le ( double  x,
double  y,
double  e 
) [inline, static]
static boolean MyMath::lt ( double  x,
double  y,
double  e 
) [inline, static]
float MyMath::max ( int  count,
const float *  x 
) [static]

References i, and m.

float MyMath::min ( int  count,
const float *  x 
) [static]

References i, and m.

void MyMath::minmax ( Coord &  min,
Coord &  max 
) [inline, static]

Referenced by near_line_segment().

boolean MyMath::near_line ( Coord  x,
Coord  y,
Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2,
float  epsilon 
) [static]

References d, and norm2().

Referenced by near_line_segment().

Here is the call graph for this function:

boolean MyMath::near_line_segment ( Coord  x,
Coord  y,
Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2,
float  epsilon 
) [static]

References b, inside(), minmax(), near_line(), and t.

Here is the call graph for this function:

static float MyMath::norm2 ( Coord  x,
Coord  y 
) [inline, static]
static double MyMath::resolution ( double   )  [static]
double MyMath::round ( float &  x1,
float &  x2,
int  direction,
int  digits 
) [static]

References Contract, Expand, Higher, and Lower.

void MyMath::round_range ( Coord  x1,
Coord  x2,
double &  y1,
double &  y2,
int ntic 
) [static]

References anint(), and int.

Here is the call graph for this function:

void MyMath::round_range_down ( Coord  x1,
Coord  x2,
double &  y1,
double &  y2,
int ntic 
) [static]

References int.

boolean MyMath::unit_normal ( Coord  x,
Coord  y,
Coord *  perp 
) [static]

The documentation for this class was generated from the following files:
Generated on Mon Jun 13 08:10:32 2011 for NEURON by  doxygen 1.6.3