Returns true if b is completely contained by a
b
a
// Compare two pointsisContainedBy(circleA, circleB);// Compare a circle with a pointisContainedBy(circleA, {x: 10, y: 20});// Define radius as third parameterisContainedBy(circleA, {x: 10, y: 20}, 20); Copy
// Compare two pointsisContainedBy(circleA, circleB);// Compare a circle with a pointisContainedBy(circleA, {x: 10, y: 20});// Define radius as third parameterisContainedBy(circleA, {x: 10, y: 20}, 20);
Circle
Circle or point to compare to
Optional
Radius to accompany parameter b if it's a point
Returns true if
b
is completely contained bya