Guest User

Untitled

a guest
Jan 21st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Math.atan2(-135,0)*180/Math.PI //เลข 9 ควรจะได้คำตอบ 270 (หรือ -90) องศา
  2. >> -90
  3.  
  4. //ย้ายมาไว้ที่ quadrant #1 พิกัดเลข 9 เปลี่ยนเป็น (0, 135)
  5. //(x0,y0) = (135,135) -> แทนค่าในสมการ
  6. Math.atan2(0-135,135-135)*180/Math.PI
  7. >> Math.atan2(-135,0)*180/Math.PI
  8. >> -90
Add Comment
Please, Sign In to add comment