Name

cross()

Examples
v1 = PVector(10, 20, 2)
v2 = PVector(60, 80, 6)
v3 = v1.cross(v2)
print(v3)# Prints "[ -40.0, 60.0, -400.0 ]"
Description Calculates and returns a vector composed of the cross product between two vectors.
Syntax
.cross(v)
.cross(v, target)
.cross(v1, v2, target)
Parameters
vPVector: the vector to calculate the cross product
vPVector: any variable of type PVector
targetPVector: PVector to store the result
v1PVector: any variable of type PVector
v2PVector: any variable of type PVector
targetPVector: PVector to store the result

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

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