Calculates and returns a new 2D unit vector from the specified angle value (in radians). @webref pvector:method @usage web_application @webBrief Make a new 2D unit vector from an angle @param angle the angle in radians @return the new unit PVector
(float angle)
| 323 | * @return the new unit PVector |
| 324 | */ |
| 325 | static public PVector fromAngle(float angle) { |
| 326 | return fromAngle(angle,null); |
| 327 | } |
| 328 | |
| 329 | |
| 330 | /** |