Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
cMathUtil Class Reference

#include <mathutil.h>

Static Public Member Functions

static void Angle_To_Vector (double angle, double &dx, double &dy)
 
static void Vector_To_Angle (double dx, double dy, double &angle)
 
static double Simple_Distance (double x1, double y1, double x2, double y2)
 
static int Round (double arg)
 
static void Rotate_Vector (double &vx, double &vy, double angle)
 
static double Get_Uniform_Pdf_Double (double lower, double upper)
 
static double Get_Normalized_Uniform_Pdf_Double ()
 
static int Get_Uniform_Pdf_Int (int lower, int upper)
 
static double Get_Hat_Pdf_Double (double lower, double upper)
 
static double Get_Normalized_Hat_Pdf_Double ()
 
static int Get_Hat_Pdf_Int (int lower, int upper)
 

Static Public Attributes

static const double PI_1 = 3.1415927
 
static const double PI_2 = 1.5707963
 

Detailed Description

Definition at line 34 of file mathutil.h.

Member Function Documentation

◆ Angle_To_Vector()

void cMathUtil::Angle_To_Vector ( double angle,
double & dx,
double & dy )
static

Definition at line 42 of file mathutil.cpp.

◆ Get_Hat_Pdf_Double()

double cMathUtil::Get_Hat_Pdf_Double ( double lower,
double upper )
static

Definition at line 175 of file mathutil.cpp.

◆ Get_Hat_Pdf_Int()

int cMathUtil::Get_Hat_Pdf_Int ( int lower,
int upper )
static

Definition at line 210 of file mathutil.cpp.

◆ Get_Normalized_Hat_Pdf_Double()

double cMathUtil::Get_Normalized_Hat_Pdf_Double ( )
static

Definition at line 204 of file mathutil.cpp.

◆ Get_Normalized_Uniform_Pdf_Double()

double cMathUtil::Get_Normalized_Uniform_Pdf_Double ( )
static

Definition at line 158 of file mathutil.cpp.

◆ Get_Uniform_Pdf_Double()

double cMathUtil::Get_Uniform_Pdf_Double ( double lower,
double upper )
static

Definition at line 146 of file mathutil.cpp.

◆ Get_Uniform_Pdf_Int()

int cMathUtil::Get_Uniform_Pdf_Int ( int lower,
int upper )
static

Definition at line 164 of file mathutil.cpp.

◆ Rotate_Vector()

void cMathUtil::Rotate_Vector ( double & vx,
double & vy,
double angle )
static

Definition at line 132 of file mathutil.cpp.

◆ Round()

int cMathUtil::Round ( double arg)
static

Definition at line 118 of file mathutil.cpp.

◆ Simple_Distance()

double cMathUtil::Simple_Distance ( double x1,
double y1,
double x2,
double y2 )
static

Definition at line 110 of file mathutil.cpp.

◆ Vector_To_Angle()

void cMathUtil::Vector_To_Angle ( double dx,
double dy,
double & angle )
static

Definition at line 77 of file mathutil.cpp.

Member Data Documentation

◆ PI_1

const double cMathUtil::PI_1 = 3.1415927
static

Definition at line 54 of file mathutil.h.

◆ PI_2

const double cMathUtil::PI_2 = 1.5707963
static

Definition at line 55 of file mathutil.h.


The documentation for this class was generated from the following files: