MCPcopy Index your code
hub / github.com/processing/processing / atan2

Method atan2

core/src/processing/core/PApplet.java:4865–4867  ·  view source on GitHub ↗

( begin auto-generated from atan2.xml ) 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 orienti

(float y, float x)

Source from the content-addressed store, hash-verified

4863 * @see PApplet#tan(float)
4864 */
4865 static public final float atan2(float y, float x) {
4866 return (float)Math.atan2(y, x);
4867 }
4868
4869/**
4870 * ( begin auto-generated from degrees.xml )

Callers 3

parsePathArctoMethod · 0.95
frustumMethod · 0.80
headingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected