Skip to main content

circle_compute_circle_penetration

circle_compute_circle_penetration(ax, ay, ar, bx, by, br) ⇒ number

Kind: global function
Returns: number - positive value means that there is penetration, negative means that circles are separated

ParamTypeDescription
axnumberCenter of first circle
aynumberCenter of first circle
arnumberRadius of first circle
bxnumberCenter of second circle
bynumberCenter of second circle
brnumberRadius of second circle

circle_compute_circle_penetration~distance : number

Compute distance between circle centers

Kind: inner constant of circle_compute_circle_penetration

circle_compute_circle_penetration~minSeparation : number

Minimum distance between circle centers for them to not overlap

Kind: inner constant of circle_compute_circle_penetration