Name

dot()

Examples
v = PVector(10, 20, 0)
d = v.dot(60, 80, 0)
print(d)  # Prints "2200.0"
v1 = PVector(10, 20, 0)
v2 = PVector(60, 80, 0)
d = v1.dot(v2)
print(d)  # Prints "2200.0"
Description Calculates the dot product of two vectors.
Syntax
.dot(v)
.dot(x, y, z)
.dot(v1, v2)
Parameters
vPVector: any variable of type PVector
xfloat: x component of the vector
yfloat: y component of the vector
zfloat: z component of the vector
v1PVector: any variable of type PVector
v2PVector: any variable of type PVector

Updated on Mon Sep 21 15:53:25 2020.

If you see any errors or have comments, please let us know.