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 |
|
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