Open
Description
Created by: ExpandingS
Description
The method setHeading isn't highlighted like other methods in PVector. It also isn't in the reference (But this may be an issue for processing-docs?).
Expected Behavior
setHeading appears with that same blue colour.
Current Behavior
Steps to Reproduce
- Paste the following code:
void setup() {
PVector p = new PVector(5, 5);
p.setMag(2);
p.setHeading(3);
}
- Observe the highlighting
Your Environment
- Processing version: 4.0b7, latest from git
- Operating System and OS version: Windows 10
- Other information:
Possible Causes / Solutions
I've tried adding annotations as there aren't currently any, like:
/**
*
* Set the heading of this vector to the value used for the <b>len</b> 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));
y = (float) (m * Math.sin(angle));
return this;
}
However it didn't seem to change anything.
Other
Added in this issue