gameforge - v0.1.12
    Preparing search index...

    Class Ellipse

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

    PIXI

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • Optionalx: number

        The X coordinate of the center of this ellipse

      • Optionaly: number

        The Y coordinate of the center of this ellipse

      • OptionalhalfWidth: number

        The half width of this ellipse

      • OptionalhalfHeight: number

        The half height of this ellipse

      Returns Ellipse

    Properties

    height: number
    0
    
    type: ELIP

    The type of the object, mainly used to avoid instanceof checks

    PIXI.SHAPES.ELIP
    

    PIXI.SHAPES

    width: number
    0
    
    x: number
    0
    
    y: number
    0
    

    Methods

    • Creates a clone of this Ellipse instance

      Returns Ellipse

      A copy of the ellipse

    • Checks whether the x and y coordinates given are contained within this ellipse

      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 coords are within this ellipse

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

      Returns Rectangle

      The framing rectangle