C:/Documents and Settings/slap/My Documents/Visual Studio 2005/Projects/Template7/template7/vectorMath.h File Reference

#include <cmath>
#include "stdafx.h"
#include "adll.h"

Classes

struct  INT_PAIR
 Simple int pair. More...
struct  INT_VEC
 Simple int vec. More...
class  CRangeType
 Store a range A pair of numbers storing the start/end values. More...
class  CVector3D
 Mange a 3D vector. More...
class  CAngle3D
 Mange a 3D set of angles (pan, tilt, roll). More...

Functions

bool is_close_to (const unit a, const unit b)
 Are two values close to being equal?
bool is_close_to_zero (const unit a)
 Is the value close to zero?
unit angle_range (unit f)
unit angle_diff (unit a, unit b)

Detailed Description

Math code.

(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.

Author:
Doug Poston
Version:
1.3
Date:
12/28/2007

Function Documentation

unit angle_diff ( unit  a,
unit  b 
)

Parameters:
a First angle.
b Second angle.
Returns:
The smallest rotation which, if added to a, would result in b

unit angle_range ( unit  f  ) 

Parameters:
f Angle value.
Returns:
Angle value reduced to the range -180 to +180.

bool is_close_to ( const unit  a,
const unit  b 
) [inline]

Are two values close to being equal?

Parameters:
a First value.
b Second value.
Returns:
true if a is equal to b +/- a set tolerance.

bool is_close_to_zero ( const unit  a  )  [inline]

Is the value close to zero?

Parameters:
a Value being checked.
Returns:
true if a is equal to 0 +/- a set tolerance.


Generated on Fri Dec 28 12:55:06 2007 for template7 by  doxygen 1.5.4