From e5314137de67bcf964fba4e3d3b68caf6db39506 Mon Sep 17 00:00:00 2001 From: ExpandingS Date: Sat, 23 Apr 2022 00:31:24 +1000 Subject: [PATCH] Add doclet for setHeading in PVector --- core/src/processing/core/PVector.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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));