Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

math_angles.h File Reference

#include <stdlib.h>
#include <assert.h>
#include "math_vector.h"

Include dependency graph for math_angles.h:

Include dependency graph

Go to the source code of this file.

Data Structures

class  angles_t

Typedefs

typedef idVec3_tvec3_p

Functions

angles_t operator * (float a, const angles_t &b)
angles_t operator * (const angles_t &a, float b)
int operator!= (angles_t &a, angles_t &b)
angles_t operator+ (const angles_t &a, const angles_t &b)
angles_t operator- (angles_t &a, angles_t &b)
int operator== (angles_t &a, angles_t &b)

Variables

angles_t ang_zero


Typedef Documentation

typedef idVec3_t& vec3_p
 

Definition at line 33 of file math_angles.h.


Function Documentation

angles_t operator * float  a,
const angles_t b
[inline]
 

Definition at line 167 of file math_angles.h.

References a, b, angles_t::pitch, angles_t::roll, and angles_t::yaw.

00167                                                         {
00168     return angles_t( a * b.pitch, a * b.yaw, a * b.roll );
00169 }

angles_t operator * const angles_t a,
float  b
[inline]
 

Definition at line 163 of file math_angles.h.

References a, b, angles_t::pitch, angles_t::roll, and angles_t::yaw.

00163                                                         {
00164     return angles_t( a.pitch * b, a.yaw * b, a.roll * b );
00165 }

int operator!= angles_t a,
angles_t b
[inline]
 

Definition at line 183 of file math_angles.h.

References a, b, angles_t::pitch, angles_t::roll, and angles_t::yaw.

00183                                                   {
00184     return ( ( a.pitch != b.pitch ) || ( a.yaw != b.yaw ) || ( a.roll != b.roll ) );
00185 }

angles_t operator+ const angles_t a,
const angles_t b
[inline]
 

Definition at line 131 of file math_angles.h.

References a, b, angles_t::pitch, angles_t::roll, and angles_t::yaw.

00131                                                                   {
00132     return angles_t( a.pitch + b.pitch, a.yaw + b.yaw, a.roll + b.roll );
00133 }

angles_t operator- angles_t a,
angles_t b
[inline]
 

Definition at line 151 of file math_angles.h.

References a, b, angles_t::pitch, angles_t::roll, and angles_t::yaw.

00151                                                       {
00152     return angles_t( a.pitch - b.pitch, a.yaw - b.yaw, a.roll - b.roll );
00153 }

int operator== angles_t a,
angles_t b
[inline]
 

Definition at line 179 of file math_angles.h.

References a, b, angles_t::pitch, angles_t::roll, and angles_t::yaw.

00179                                                   {
00180     return ( ( a.pitch == b.pitch ) && ( a.yaw == b.yaw ) && ( a.roll == b.roll ) );
00181 }


Variable Documentation

angles_t ang_zero
 


Generated on Thu Aug 25 15:33:47 2005 for Quake III Arena by  doxygen 1.3.9.1