Name | fromAngle() |
||||
---|---|---|---|---|---|
Examples |
v = PVector.fromAngle(0.01) print(v) # Prints "[ 0.99995, 0.009999833, 0.0 ]" | ||||
Description | Calculates and returns a new 2D unit vector from the specified angle value (in radians). | ||||
Syntax | .fromAngle(angle) .fromAngle(angle, target) | ||||
Parameters |
|
Updated on Tue Feb 27 14:07:12 2024.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License