Ellipse
data class Ellipse( val center: Vector2, val xRadius: Double, val yRadius: Double) : Movable, Scalable2D, ShapeProvider, ShapeContourProvider
Content copied to clipboard
Creates a new Ellipse.
Also see Circle.
Parameters
xRadius
Horizontal radius.
yRadius
Vertical radius.
Constructors
Functions
Link copied to clipboard
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.
Link copied to clipboard
open override fun scaledBy( scale: Double, uAnchor: Double, vAnchor: Double): Ellipse
Content copied to clipboard
Creates a new shape with dimensions scaled by scale.
open override fun scaledBy( xScale: Double, yScale: Double, uAnchor: Double, vAnchor: Double): Ellipse
Content copied to clipboard
Creates a new Ellipse with the scale specified as multipliers for the current radii.
Link copied to clipboard