openrndr / org.openrndr.shape / Ellipse

Ellipse

data class Ellipse (source)

Constructors

<init>

Ellipse(x: Double, y: Double, xRadius: Double, yRadius: Double)
Ellipse(center: Vector2, xRadius: Double, yRadius: Double)

Properties

center

val center: Vector2

contour

creates ShapeContour representation

val contour: ShapeContour

shape

creates Shape representation

val shape: Shape

xRadius

val xRadius: Double

yRadius

val yRadius: Double

Functions

div

operator fun div(scale: Double): Ellipse

minus

operator fun minus(right: Ellipse): Ellipse

moved

creates new Ellipse with center offset by offset

fun moved(offset: Vector2): OrientedEllipse

movedTo

creates new Ellipse with center at position

fun movedTo(position: Vector2): OrientedEllipse

plus

operator fun plus(right: Ellipse): Ellipse

scaled

creates new Ellipse with radius scaled by scale

fun scaled(xScale: Double, yScale: Double = xScale): OrientedEllipse

scaledTo

creates new Ellipse with radius set to fitRadius

fun scaledTo(xFitRadius: Double, yFitRadius: Double = xFitRadius): OrientedEllipse

times

operator fun times(scale: Double): Ellipse

withOrientation

fun withOrientation(degrees: Double): OrientedEllipse