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

Method fromAngle

core/src/processing/core/PVector.java:340–342  ·  view source on GitHub ↗

( begin auto-generated from PVector_sub.xml ) Make a new 2D unit vector from an angle. ( end auto-generated ) @webref pvector:method @usage web_application @brief 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

338 * @return the new unit PVector
339 */
340 static public PVector fromAngle(float angle) {
341 return fromAngle(angle,null);
342 }
343
344
345 /**

Callers 1

random2DMethod · 0.95

Calls 3

setMethod · 0.65
cosMethod · 0.45
sinMethod · 0.45

Tested by

no test coverage detected