MCPcopy Index your code
hub / github.com/benfry/processing4 / atan2

Method atan2

core/src/processing/core/PApplet.java:4439–4441  ·  view source on GitHub ↗

Calculates the angle (in radians) from a specified point to the coordinate origin as measured from the positive x-axis. Values are returned as a float in the range from PI to -PI . The atan2() function is most often used for orienting geometry to the position of the cursor

(float y, float x)

Source from the content-addressed store, hash-verified

4437 * @see PApplet#tan(float)
4438 */
4439 static public final float atan2(float y, float x) {
4440 return (float)Math.atan2(y, x);
4441 }
4442
4443/**
4444 *

Callers 3

parsePathArctoMethod · 0.95
frustumMethod · 0.80
headingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected