# MathLib.Circle()

```
// the circle with its center in the point (3, 4) and radius 2.
var c1 = new MathLib.Circle([3, 4], 2);
// the same circle
var c2 = new MathLib.Circle(new MathLib.Point(3,4), 2);
```

As always MathLib does not check if your inputs make sense; it assumes they do. For example, MathLib will not prevent you from using a negative number as radius.## Properties

- .center
- The center of the circle as MathLib.point
- .constructor
- The function
`MathLib.Circle` - .radius
- The radius of the circle
- .type
- The string "circle"

## Methods

- .area()
- Calculates the area of a circle.
- .circumference()
- Calculates the circumference of a circle.
- .compare()
- A compare method for circles.
- .draw()
- Draws the circle.
- .positionOf()
- Decides wether a point lies in, on, or outside the circle.
- .isEqual()
- Decides whether two circles are equal.
- .reflectAt()
- Reflects the circle at a point or a line.
- .toLaTeX()
- Returns a LaTeX representation of the circle.
- .toMatrix()
- Returns a matrix representation of the circle.

## Links

- Circle on Wikipedia