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

Method cos

core/src/processing/core/PApplet.java:4349–4351  ·  view source on GitHub ↗

Calculates the cosine of an angle. This function expects the values of the angle parameter to be provided in radians (values from 0 to PI 2). Values are returned in the range -1 to 1. @webref math:trigonometry @webBrief Calculates the cosine of an angle @param angle an angle in radians @see

(float angle)

Source from the content-addressed store, hash-verified

4347 * @see PApplet#radians(float)
4348 */
4349 static public final float cos(float angle) {
4350 return (float)Math.cos(angle);
4351 }
4352
4353/**
4354 *

Callers 10

invRotateMethod · 0.95
lightSpotMethod · 0.95
parsePathArctoMethod · 0.95
parseSingleTransformMethod · 0.95
rotateMethod · 0.95
setParametersMethod · 0.45
PGraphicsClass · 0.45
random3DMethod · 0.45
fromAngleMethod · 0.45
setHeadingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected