Circle

class Circle(val center: Point, radius: Double) : Ellipse

A circle defined by a center point and radius.

Parameters

center

point of the circle

radius

of the circle

Constructors

Link copied to clipboard
constructor(radius: Double = 0.0)

Creates a Circle centered at the Origin.

constructor(center: Point, radius: Double)

creates a new Circle

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The circle's radius

Inherited properties

Link copied to clipboard
open override val area: Double
Link copied to clipboard
open override val boundingRectangle: Rectangle
Link copied to clipboard

point of the ellipse

Link copied to clipboard

The circle's circumference (2 * PI * Circle.radius)

Link copied to clipboard

The circle's diameter (2 * Circle.radius)

Link copied to clipboard
open override val empty: Boolean
Link copied to clipboard

or horizontal radius

Link copied to clipboard

or vertical radius

Functions

Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard
fun Circle.at(point: Point): Circle
Link copied to clipboard
Link copied to clipboard
open operator override fun contains(point: Point): Boolean

Checks whether the Shape contains a given point.

open operator override fun contains(rectangle: Rectangle): Boolean

Checks whether the Shape contains a given rectangle.

Link copied to clipboard
fun Ellipse.inscribed(sides: Int, rotation: Measure<Angle> = 0 * degrees): ConvexPolygon?

Creates a Regular polygon by inscribing it within the ellipse.

Link copied to clipboard
fun Circle.inset(inset: Double): Circle
fun Ellipse.inset(insetX: Double, insetY: Double = insetX): Ellipse
Link copied to clipboard
open infix override fun intersects(rectangle: Rectangle): Boolean

Checks whether the Shape intersects a rectangle.

Link copied to clipboard

Converts an Ellipse to a Path.

Link copied to clipboard