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 Mon Sep 21 15:53:25 2020.
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