#include <iostream>
#include <cmath>
Go to the source code of this file.
|
void | rotate (float x0, float y0, float *x, float *y, float angle) |
|
void rotate |
( |
float |
x0, |
|
|
float |
y0, |
|
|
float * |
x, |
|
|
float * |
y, |
|
|
float |
angle |
|
) |
| |
|
inline |
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;
G3D::int16 y
Definition: Vector2int16.h:38
G3D::int16 x
Definition: Vector2int16.h:37