Name | limit() |
---|---|
Examples |
v = PVector(10, 20, 2) v.limit(5) print(v) # Prints "[ 2.2271771, 4.4543543, 0.4454354 ]" |
Description | Limit the magnitude of this vector to the value used for the max parameter. |
Syntax | .limit(max) |
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