Overview
In ixfx, a Point is at least an x and y coordinate. Some - but very few - functions also work with the z
property, if provided.
type Point = { x: number y: number z?: number}
For the most part, a Point is refers to some Cartesian coordinate, where the top-left corner is { x: 0, y: 0 }
. You generally want to work with relative or scalar coordinates, meaning the x and y are on a 0..1 scale.
Points are used in conjunction with other shapes, for example to define the location of a Circle, or start and end of a Line.
An alternative way of expressing a coordinate are Polar coordinates which use an angle and distance from an origin point. The x, y values of a Cartesian point are useful in most cases - and how we end up having to put something on an output of some kind, but polar coordinates more logically allow for circular arrangements.