Name | setMag() |
||||||
---|---|---|---|---|---|---|---|
Examples |
v = PVector(3, 4, 0) v.setMag(10) print(v) # Prints "[ 6.0, 8.0, 0.0 ]" | ||||||
Description | Set the magnitude of this vector to the value used for the len parameter. | ||||||
Syntax | .setMag(len) .setMag(target, len) | ||||||
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