ベクトル間の角度を求める

sapphire_al2o3

License: MIT License

Fork
0
Fav
3
View
2846
  • Play

Fullscreen

Smart Phone

  • Readme
  • JavaScript 165 lines
  • HTML 1 lines
  • CSS 0 lines

ベクトル間の角度を0~360度の範囲で求める

var r = Math.atan2(v0.x * v1.y - v1.x * v0.y, v0.x * v1.x + v0.y * v1.y); r = r < 0 ? r + Math.PI * 2 : r;

  • ベクトル間の角度を求める
  • ベクトル間の角度を求める

play

Complete!

Description What kind of game?

Control Device

jsdo.it websocket controller

Mouse

keyboard

smartphone

Fullscreen

sapphire_al2o3

Author

twitter @sapphire_al2o3

Default Panel

Size

  • Width: px
  • Height: px

code

QR Code

Discussion

Questions on this code?

Tags

Favorite by

alvarobyrnealvarobyrne:

geometrymeasure angle; angle measurement