Module physics/distances-2d
Functions
distance2dCircleCircle
- distance2dCircleCircle(ax: number, ay: number, ar: number, bx: number, by: number, br: number): number
-
Parameters
-
ax: number
-
ay: number
-
ar: number
-
bx: number
-
by: number
-
br: number
Returns number
distance2dCircleCircleSqr
- distance2dCircleCircleSqr(ax: number, ay: number, ar: number, bx: number, by: number, br: number): number
-
Parameters
-
ax: number
-
ay: number
-
ar: number
-
bx: number
-
by: number
-
br: number
Returns number
distance2dPointCircle
- distance2dPointCircle(ax: number, ay: number, bx: number, by: number, br: number): number
-
Parameters
-
ax: number
-
ay: number
-
bx: number
-
by: number
-
br: number
Returns number
distance2dPointCircleSqr
- distance2dPointCircleSqr(ax: number, ay: number, bx: number, by: number, br: number): number
-
Parameters
-
ax: number
-
ay: number
-
bx: number
-
by: number
-
br: number
Returns number
distance2dPointLine
- distance2dPointLine(aX: number, aY: number, bX: number, bY: number, pX: number, pY: number): number
-
Parameters
-
aX: number
-
aY: number
-
bX: number
-
bY: number
-
pX: number
-
pY: number
Returns number
distance2dPointLineSqr
- distance2dPointLineSqr(aX: number, aY: number, bX: number, bY: number, pX: number, pY: number): number
-
Parameters
-
aX: number
-
aY: number
-
bX: number
-
bY: number
-
pX: number
-
pY: number
Returns number
distance2dPointPoint
- distance2dPointPoint(ax: number, ay: number, bx: number, by: number): number
-
Parameters
-
ax: number
-
ay: number
-
bx: number
-
by: number
Returns number
distance2dPointPointSqr
- distance2dPointPointSqr(ax: number, ay: number, bx: number, by: number): number
-
Parameters
-
ax: number
-
ay: number
-
bx: number
-
by: number
Returns number