kąt między dwoma wektorami
function angleTo(v: Vector) {
return Math.atan2(v.y - this.y, v.x - this.x)
}
Himanshu Jangid
function angleTo(v: Vector) {
return Math.atan2(v.y - this.y, v.x - this.x)
}