TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
vec3d.h File Reference
#include <iostream>
#include <cmath>
+ Include dependency graph for vec3d.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vec3D
 
class  Vec2D
 

Functions

void rotate (float x0, float y0, float *x, float *y, float angle)
 

Function Documentation

void rotate ( float  x0,
float  y0,
float *  x,
float *  y,
float  angle 
)
inline
242 {
243  float xa = *x - x0, ya = *y - y0;
244  *x = xa*cosf(angle) - ya*sinf(angle) + x0;
245  *y = xa*sinf(angle) + ya*cosf(angle) + y0;
246 }
G3D::int16 y
Definition: Vector2int16.h:38
G3D::int16 x
Definition: Vector2int16.h:37