API Docs for: 1.5.0
Show:

Circle Class

Module: PIXI

The Circle object can be used to specify a hit area for displayObjects

Constructor

Circle

(
  • x
  • y
  • radius
)

Parameters:

  • x Number

    The X coordinate of the upper-left corner of the framing rectangle of this circle

  • y Number

    The Y coordinate of the upper-left corner of the framing rectangle of this circle

  • radius Number

    The radius of the circle

Item Index

Methods

Properties

Methods

clone

() Circle

Creates a clone of this Circle instance

Returns:

Circle:

a copy of the polygon

contains

(
  • x
  • y
)
Boolean

Checks whether the x, and y coordinates passed to this function are contained within this circle

Parameters:

  • x Number

    The X coordinate of the point to test

  • y Number

    The Y coordinate of the point to test

Returns:

Boolean:

Whether the x/y coordinates are within this polygon

Properties

radius

Number

Default: 0

x

Number

Default: 0

y

Number

Default: 0