Skip to content

Circle

Module Geometry.Circles

In ixfx, a circle is simply an object with radius, or if it’s positioned it also has coordinates:

type Circle = {
radius:number
}
type CirclePositioned = {
radius:number
x:number
y:number
}

Once you have that there are a bunch of functions to help you work with circles.