springroll.native.Ellipse Class

The Ellipse object can be used to specify a hit area for displayobjects

Constructor

springroll.native.Ellipse

(
  • x
  • y
  • width
  • height
)

Parameters:

  • x Number

    The X coord of the upper-left corner of the framing rectangle of this ellipse

  • y Number

    The Y coord of the upper-left corner of the framing rectangle of this ellipse

  • width Number

    The overall width of this ellipse

  • height Number

    The overall height of this ellipse

Methods

Properties

clone

() Ellipse

Defined in clone:51

Creates a clone of this Ellipse instance

Returns:

Ellipse:

a copy of the ellipse

contains

(
  • x
  • y
)
Boolean

Defined in contains:62

Checks if the x, and y coords passed to this function are contained within this ellipse

Parameters:

  • x Number

    The X coord of the point to test

  • y Number

    The Y coord of the point to test

Returns:

Boolean:

if the x/y coords are within this ellipse

height

Number

Defined in height:41

Default: 0

width

Number

Defined in width:34

Default: 0

x

Number

Defined in x:20

Default: 0

y

Number

Defined in y:27

Default: 0