SimpleVector - Interactive examples

back

Constructor methods

v
x:0, y:2.5
v.toString()
"x:0, y:2.5"
v.toArray()
[0, 2.5]
v.toObject()
{x: 0, y: 2.5}
v.toPolar()
{r: 2.5, theta: 1.5707963267948966}