SimpleVector - Interactive examples

back

AngleWith methods

v1
x:0, y:5
v2
x:2.5, y:0
v1.angleWith(v2)
1.571
v1.orientedAngleWith(v2)
-1.571
v1.angleDegWith(v2)
90
v1.orientedAngleDegWith(v2)
-90

Note that in this page the precision of the results is fixed by applying .toFixed() to the output of the methods. When you use theses methods in your code you will get the raw results without a fixed precision.