( begin auto-generated from PVector_setMag.xml ) Set the magnitude of this vector to the value used for the len parameter. ( end auto-generated ) @webref pvector:method @usage web_application @param len the new length for this vector @brief Set the magnitude of the vector
(float len)
| 861 | * @brief Set the magnitude of the vector |
| 862 | */ |
| 863 | public PVector setMag(float len) { |
| 864 | normalize(); |
| 865 | mult(len); |
| 866 | return this; |
| 867 | } |
| 868 | |
| 869 | |
| 870 | /** |