AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
vec3d.h File Reference
#include <cmath>
#include <iostream>

Go to the source code of this file.

Classes

class  Vec3D
 
class  AaBox3D
 
class  Vec2D
 
struct  Quaternion
 

Functions

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

Function Documentation

◆ rotate()

void rotate ( float  x0,
float  y0,
float *  x,
float *  y,
float  angle 
)
inline
248{
249 float xa = *x - x0, ya = *y - y0;
250 *x = xa * cosf(angle) - ya * sinf(angle) + x0;
251 *y = xa * sinf(angle) + ya * cosf(angle) + y0;
252}