Class Ellipse

an ellipse Object

Constructors

Properties

_bounds: Bounds

The bounding rectangle for this shape

the center coordinates of the ellipse

radius: number

Maximum radius of the ellipse

radiusSq: Vector2d

Radius squared, for pythagorean theorom

radiusV: Vector2d

Pre-scaled radius vector for ellipse

ratio: Vector2d

x/y scaling ratio for ellipse

type: string = "Ellipse"

the shape type (used internally)

Methods

  • set new value to the Ellipse shape

    Parameters

    • x: number

      the center x coordinate of the ellipse

    • y: number

      the center y coordinate of the ellipse

    • w: number

      width (diameter) of the ellipse

    • h: number

      height (diameter) of the ellipse

    Returns Ellipse

    this instance for objecf chaining