examples/raycaster/raycaster.cpp
// TODO: should be in the vec2 class
should be in the vec2 class
should be in the vec2 class
vec2 rotate_vector(vec2 v, float a) {
	float c = cos(a);
	float s = sin(a);
	float tx = v.x * c - v.y * s;
	float ty = v.x * s + v.y * c;
	return vec2{ tx, ty };
}
vec2 rotate_vector ( vec2 v , float a ) { float c = cos ( a ) ; float s = sin ( a ) ; float tx = v . x * c - v . y * s ; float ty = v . x * s + v . y * c ; return vec2 { tx , ty } ; }
TODO: should be in the vec2 class
TODO : should be in the vec2 class