let v1 = createVector(100, 100); // default “Cartesian” mode let v2 = createVector(90, 1, POLAR); // switch to “Polar” mode let v3 = createVector(100, 100, 100) ; // default “Cartesian” mode for 3D let v4 = createVector(90, 180, 100, SPHERICAL); // switch to “Spherical” mode for 3D

let v1 = createVector(100, 100);                // default "Cartesian" mode
let v2 = createVector(90, 1, POLAR);            // switch to "Polar" mode
let v3 = createVector(100, 100, 100) ;          // default "Cartesian" mode for 3D
let v4 = createVector(90, 180, 100, SPHERICAL); // switch to "Spherical" mode for 3D

Leave a comment

Your email address will not be published. Required fields are marked *


8 − three =

Leave a Reply