Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

angle between two vectors

function angleTo(v: Vector) {
        return Math.atan2(v.y - this.y, v.x - this.x)
 }
 
PREVIOUS NEXT
Tagged: #angle #vectors
ADD COMMENT
Topic
Name
8+6 =