Guest User

Untitled

a guest
Dec 11th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. float2 a(0,0);
  2. float2 arriba_izquierda(-1,1);
  3. float2 arriba_derecha(1,1);
  4. float2 abajo_izquierda(-1,-1);
  5. float2 abajo_derecha(1,-1);
  6.  
  7. cout << (arriba_izquierda - a).normalize().y << endl;
  8. cout << (arriba_derecha - a).normalize().y << endl;
  9. cout << (abajo_izquierda - a).normalize().y << endl;
  10. cout << (abajo_derecha - a).normalize().y << endl;
  11.  
  12. // Resultados
  13. 0.707107
  14. 0.707107
  15. -0.707107
  16. -0.707107
Add Comment
Please, Sign In to add comment