Options
All
  • Public
  • Public/Protected
  • All
Menu

The Circle object is used to help draw graphics and can also be used to specify a hit area for displayObjects.

memberof

PIXI

Hierarchy

  • Circle

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Circle(x?: number, y?: number, radius?: number): Circle
  • Parameters

    • Optional x: number
    • Optional y: number
    • Optional radius: number

    Returns Circle

Properties

radius

radius: number

Readonly type

type: CIRC

x

x: number

y

y: number

Methods

clone

  • Creates a clone of this Circle instance

    Returns Circle

    a copy of the Circle

contains

  • contains(x: number, y: number): boolean
  • Checks whether the x and y coordinates given 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 Circle

getBounds

  • Returns the framing rectangle of the circle as a Rectangle object

    Returns Rectangle

    the framing rectangle

toString

  • toString(): string
  • Returns string

Generated using TypeDoc