( begin auto-generated from PVector_sub.xml ) Make a new 2D unit vector from an angle. ( end auto-generated ) @webref pvector:method @usage web_application @brief Make a new 2D unit vector from an angle @param angle the angle in radians @return the new unit PVector
(float angle)
| 338 | * @return the new unit PVector |
| 339 | */ |
| 340 | static public PVector fromAngle(float angle) { |
| 341 | return fromAngle(angle,null); |
| 342 | } |
| 343 | |
| 344 | |
| 345 | /** |