Set the magnitude of this vector to the value used for the len parameter. @webref pvector:method @usage web_application @param len the new length for this vector @webBrief Set the magnitude of the vector
(float len)
| 827 | * @webBrief Set the magnitude of the vector |
| 828 | */ |
| 829 | public PVector setMag(float len) { |
| 830 | normalize(); |
| 831 | mult(len); |
| 832 | return this; |
| 833 | } |
| 834 | |
| 835 | |
| 836 | /** |