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