Class: Circle

Circle(center, radius)

new Circle(center, radius)

Create a new circle with given center point and radius.
Parameters:
Name Type Description
center Vertex The center point of the circle.
radius number The radius of the circle.
Source:

Methods

lineDistance(line) → {number}

Calculate the distance from this circle to the given line. * If the line does not intersect this ciecle then the returned value will be the minimal distance. * If the line goes through this circle then the returned value will be max inner distance and it will be negative.
Parameters:
Name Type Description
line Line The line to measure the distance to.
Source:
Returns:
The minimal distance from the outline of this circle to the given line.
Type
number

toSVGString(optionsopt) → {string}

Create an SVG representation of this circle.
Parameters:
Name Type Attributes Description
options object <optional>
An optional set of options, like 'className'.
Source:
Returns:
A string representing the SVG code for this vertex.
Type
string