Math.hpp File Reference

Contains simple math functionality. More...

Go to the source code of this file.

Namespaces

namespace  Gosu

Functions

long Gosu::trunc (double value)
long Gosu::round (double value)
double Gosu::random (double min, double max)
double Gosu::gosuToRadians (double angle)
double Gosu::radiansToGosu (double angle)
double Gosu::offsetX (double angle, double radius)
double Gosu::offsetY (double angle, double radius)
double Gosu::angle (double fromX, double fromY, double toX, double toY, double def=0)
double Gosu::angleDiff (double angle1, double angle2)
double Gosu::normalizeAngle (double angle)
template<typename T>
Gosu::square (T value)
template<typename T>
Gosu::clamp (T value, T min, T max)
template<typename T>
Gosu::boundBy (T value, T min, T max)
double Gosu::distanceSqr (double x1, double y1, double x2, double y2)
double Gosu::distance (double x1, double y1, double x2, double y2)
template<typename T>
Gosu::interpolate (T a, T b, double weight=0.5)

Variables

const double Gosu::pi = 3.1415926536


Detailed Description

Contains simple math functionality.


Generated on Sat Dec 6 03:53:17 2008 for Gosu by  doxygen 1.5.5