# Ellipse

data class Ellipse(    val center: Vector2,     val xRadius: Double,     val yRadius: Double) : Movable, Scalable2D, ShapeProvider, ShapeContourProvider

Creates a new Ellipse.

Also see Circle.

## Functions

operator fun div(scale: Double): Ellipse
operator fun minus(right: Ellipse): Ellipse
open override fun movedBy(offset: Vector2): Ellipse

Creates a new Ellipse with the current center offset by offset with the same radii.

open override fun movedTo(position: Vector2): Ellipse

Creates a new Ellipse with the center at position with the same radii.

operator fun plus(right: Ellipse): Ellipse
open fun position(uv: Vector2): Vector2

Returns a position in the bounding box for a parameterized uv value between (`0.0`, `0.0`) and (`1.0`, `1.0`) where (`0.5`, `0.5`) is the center of the bounding box.

open override fun position(u: Double, v: Double): Vector2

Returns a position in the bounding box for parameterized values u and v between `0.0` and `1.0` where (`0.5`, `0.5`) is the center of the bounding box.

open override fun scaledBy(    scale: Double,     uAnchor: Double,     vAnchor: Double): Ellipse

Creates a new shape with dimensions scaled by scale.

open override fun scaledBy(    xScale: Double,     yScale: Double,     uAnchor: Double,     vAnchor: Double): Ellipse

Creates a new Ellipse with the scale specified as multipliers for the current radii.

open override fun scaledTo(radius: Double): Ellipse

Creates a new Ellipse at the same position with equal radii.

Creates a new Ellipse at the same position with the given radii.

operator fun times(scale: Double): Ellipse

## Properties

val center: Vector2
open override val contour: ShapeContour

the provided contour

val corner: Vector2

The top-left corner of the Ellipse.

open override val scale: Vector2

Current scale of this shape. Generally equivalent to its dimensions.