Returns the distance between two circle centers.
import { Circles } from "https://unpkg.com/ixfx/dist/geometry.js" const circleA = { radius: 5, x: 5, y: 5 }const circleB = { radius: 10, x: 20, y: 20 }const distance = Circles.distanceCenter(circleA, circleB); Copy
import { Circles } from "https://unpkg.com/ixfx/dist/geometry.js" const circleA = { radius: 5, x: 5, y: 5 }const circleB = { radius: 10, x: 20, y: 20 }const distance = Circles.distanceCenter(circleA, circleB);
Throws an error if either is lacking position.
Distance
Returns the distance between two circle centers.
Throws an error if either is lacking position.