Skip to content

Commit 81bd578

Browse files
committed
Add JSON file for PVector#setHeading()
1 parent e4433b5 commit 81bd578

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"brief": "Set the direction for this vector",
3+
"related": ["PVector_heading_"],
4+
"name": "setHeading()",
5+
"description": "Sets the angle this vector makes with the positive X axis (only 2D vectors)\n This is equivalent to changing the vector's direction to the given value.",
6+
"syntax": ["myPVector.setHeading(angle)"],
7+
"returns": "PVector",
8+
"type": "method",
9+
"category": "pvector",
10+
"subcategory": "method",
11+
"classanchor": "PVector",
12+
"parameters": [
13+
{
14+
"name": "myPVector",
15+
"description": "your PVector object",
16+
"type": ["PVector"]
17+
},
18+
{
19+
"name": "angle",
20+
"description": "the direction of the resultant vector",
21+
"type": ["float"]
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)