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

Method fromAngle

core/src/processing/core/PVector.java:325–327  ·  view source on GitHub ↗

Calculates and returns a new 2D unit vector from the specified angle value (in radians). @webref pvector:method @usage web_application @webBrief Make a new 2D unit vector from an angle @param angle the angle in radians @return the new unit PVector

(float angle)

Source from the content-addressed store, hash-verified

323 * @return the new unit PVector
324 */
325 static public PVector fromAngle(float angle) {
326 return fromAngle(angle,null);
327 }
328
329
330 /**

Callers 1

random2DMethod · 0.95

Calls 3

setMethod · 0.65
cosMethod · 0.45
sinMethod · 0.45

Tested by

no test coverage detected