Name | dist() |
||||||
---|---|---|---|---|---|---|---|
Examples |
v1 = PVector(10, 20, 0) v2 = PVector(60, 80, 0) d = v1.dist(v2) print(d) # Prints "78.10249328613281" v1 = PVector(10, 20, 0) v2 = PVector(60, 80, 0) d = PVector.dist(v1, v2) print(d) # Prints "78.10249328613281" | ||||||
Description | Calculates the Euclidean distance between two points (considering a point as a vector object). | ||||||
Syntax | .dist(v) .dist(v1, v2) | ||||||
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