Skip to content

Commit 8018e7e

Browse files
committed
Elucidate PVector#heading()
1 parent c712e68 commit 8018e7e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

content/references/translations/en/processing/PVector_heading_.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22
"brief": "Calculate the angle of rotation for this vector",
33
"related": [],
44
"name": "heading()",
5-
"description": "Calculate the angle of rotation for this vector (only 2D vectors)",
6-
"syntax": [".heading()"],
5+
"description": "Calculate the vector's direction, that is, the angle this vector makes\n with the positive X axis (only 2D vectors)",
6+
"syntax": ["myPVector.heading()"],
77
"returns": "float",
88
"type": "method",
99
"category": "pvector",
1010
"subcategory": "method",
1111
"classanchor": "PVector",
12-
"parameters": []
12+
"parameters": [
13+
{
14+
"name": "myPVector",
15+
"description": "your PVector object",
16+
"type": ["PVector"]
17+
}
18+
]
1319
}

0 commit comments

Comments
 (0)