Returns a point from two or three coordinates or an array of [x,y] or [x,y,z].
let p = from([10, 5]); // yields {x:10, y:5}let p = from([10, 5, 2]); // yields: {x:10, y:5, z:2}let p = from(10, 5); // yields {x:10, y:5}let p = from(10, 5, 2); // yields: {x:10, y:5, z:2} Copy
let p = from([10, 5]); // yields {x:10, y:5}let p = from([10, 5, 2]); // yields: {x:10, y:5, z:2}let p = from(10, 5); // yields {x:10, y:5}let p = from(10, 5, 2); // yields: {x:10, y:5, z:2}
Point
Returns a point from two or three coordinates or an array of [x,y] or [x,y,z].
Example
Param: xOrArray
Param: y
Returns
Point