Ellipse

open class Ellipse(val center: Point, val xRadius: Double, val yRadius: Double) : Shape

An Ellipse centered at center, with xRadius and yRadius as its radii.

Inheritors

Constructors

Link copied to clipboard
constructor(xRadius: Double, yRadius: Double)

Creates an Ellipse centered at the Origin.

constructor(center: Point, xRadius: Double, yRadius: Double)

creates a new ellipse

Types

Link copied to clipboard
object Companion

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
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 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
open infix override fun intersects(rectangle: Rectangle): Boolean

Checks whether the Shape intersects a rectangle.

Inherited functions

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 Ellipse.inset(insetX: Double, insetY: Double = insetX): Ellipse
Link copied to clipboard

Converts an Ellipse to a Path.