Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float2 a(0,0);
- float2 arriba_izquierda(-1,1);
- float2 arriba_derecha(1,1);
- float2 abajo_izquierda(-1,-1);
- float2 abajo_derecha(1,-1);
- cout << (arriba_izquierda - a).normalize().y << endl;
- cout << (arriba_derecha - a).normalize().y << endl;
- cout << (abajo_izquierda - a).normalize().y << endl;
- cout << (abajo_derecha - a).normalize().y << endl;
- // Resultados
- 0.707107
- 0.707107
- -0.707107
- -0.707107
Add Comment
Please, Sign In to add comment