tagGame::Util2D Class Reference

Some useful utilities for 2D vectors. More...

#include <Util2D.h>

List of all members.

Static Public Member Functions

static RealMatrix perpendicularTo (RealVec const &v)
 Return the two vectors perpendicular to v.
static RealVec perpendicularTo (RealVec const &v, RealVec const &d)
 Return the vector perpendicular to v that is closest in direction to d.
static RealVec dir (Real const t)
static RealVec uniformDir ()
static RealVec normalDir (Real const mean, Real const std)
static Real angle (RealVec const &v)
static RealMatrix rotationMatrix (Real const t)
static RealVec randomPosition (RealVec const &worldDim)
static RealMatrix tagentLinePts (RealVec const &p, RealVec const &center, Real const radius)
 Computes points on circle and on tangent line of p to circle.
static RealMatrix perpendicularLinePts (RealVec const &p, RealVec const &center, Real const radius)
 Computes points on circle that intersects with the line perpendicular to the line from p to center.

Static Public Attributes

static const size_t dim = 2


Detailed Description

Some useful utilities for 2D vectors.


The documentation for this class was generated from the following files:
Generated on Sat Mar 31 22:31:01 2007 for tagGame by  doxygen 1.5.1