MCPcopy
hub / github.com/KilledByAPixel/LittleJS / angle

Method angle

src/engineMath.js:732–732  ·  view source on GitHub ↗

Returns the clockwise angle of this vector, up is angle 0 * @return {number}

()

Source from the content-addressed store, hash-verified

730 /** Returns the clockwise angle of this vector, up is angle 0
731 * @return {number} */
732 angle() { return atan2(this.x, this.y); }
733
734 /** Sets this vector with clockwise angle and length passed in
735 * @param {number} [angle]

Callers 6

math.test.mjsFile · 0.45
debugLineFunction · 0.45
drawLineFunction · 0.45
updateMethod · 0.45
updateMethod · 0.45
killMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected