diff --git a/core/src/processing/core/PVector.java b/core/src/processing/core/PVector.java index c346234705..75b2d91b1b 100644 --- a/core/src/processing/core/PVector.java +++ b/core/src/processing/core/PVector.java @@ -868,6 +868,16 @@ public float heading2D() { } + /** + * + * Set the heading of this vector to the value used for the angle parameter. + * + * + * @webref pvector:method + * @usage web_application + * @param angle the new heading for this vector + * @webBrief Set the heading of the vector + */ public PVector setHeading(float angle) { float m = mag(); x = (float) (m * Math.cos(angle));