openrndr / org.openrndr.shape / OrientedEllipse

OrientedEllipse

data class OrientedEllipse (source)

Constructors

<init>

OrientedEllipse(x: Double, y: Double, xRadius: Double, yRadius: Double, rotation: Double)
OrientedEllipse(center: Vector2, xRadius: Double, yRadius: Double, rotation: Double = 0.0)

Properties

center

val center: Vector2

contour

creates ShapeContour representation

val contour: ShapeContour

rotation

val rotation: Double

shape

creates Shape representation

val shape: Shape

xRadius

val xRadius: Double

yRadius

val yRadius: Double

Functions

moved

creates new OrientedEllipse with center offset by offset

fun moved(offset: Vector2): OrientedEllipse

movedTo

creates new OrientedEllipse with center at position

fun movedTo(position: Vector2): OrientedEllipse

scaled

creates new OrientedEllipse with radius scaled by scale

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

scaledTo

creates new OrientedEllipse with radius set to fitRadius

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