Returns the area of circle
.
Computes a bounding box that encloses circle
Returns the center of a circle
Returns circumference of circle
(alias of length)
Returns the distance between two circle centers.
Returns the distance between the exterior of two circles, or between the exterior of a circle and point.
If b
overlaps or is enclosed by a
, distance is 0.
Yields the points making up the exterior (ie. circumference) of the circle. Uses Midpoint Circle Algorithm
Throws if radius is out of range. If x,y is present, these will be validated too.
Throws if circle
is not positioned or has dodgy fields
Returns all integer points contained within circle
.
Computes relative position along circle perimeter
Returns the point(s) of intersection between a circle and line.
Returns the points of intersection betweeen a
and b
.
Returns true if b
is completely contained by a
Returns true if the two objects have the same values
Returns true if a
or b
overlap, are equal, or a
contains b
.
A circle can be checked for intersections with another CirclePositioned, Point or RectPositioned.
Returns true if radius, x or y are NaN
Returns true if parameter has x,y. Does not verify if parameter is a circle or not
Returns circumference of circle
(alias of circumference)
Multiplies a circle's radius and position (if provided) by value
.
Returns the nearest point on circle
's perimeter closest to point
.
Returns a point on a circle's perimeter at a specified angle in radians
Returns a random point within a circle.
Returns a CircularPath
representation of a circle
Returns a positioned version of a circle. If circle is already positioned, it is returned. If no default position is supplied, 0,0 is used.
A circle
A Circle with position
Creates a SVG path segment.
A circle is defined as having a radius