Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Shape

Hierarchy

  • Shape

Implemented by

Index

Methods

bounds

  • Gets a min bounding rectangle.

    Returns Rect

clone

  • clone(): this
  • Clone a new shape.

    Returns this

equals

  • equals(s: this): boolean
  • Equals this shape.

    Parameters

    • s: this

    Returns boolean

inside

  • Determine whether the point or shape is inside.

    Parameters

    Returns boolean

intersects

  • intersects(s: Shape): boolean
  • Determine whether this shape intersects with a specified shape.

    Parameters

    Returns boolean

isEmpty

  • isEmpty(): boolean
  • Returns boolean

onside

  • The point on the border of this shape.

    Parameters

    Returns boolean

perimeter

  • perimeter(): number
  • Returns the perimeter of this shape.

    Returns number

vertexes

  • Gets all vertexes of this shape.

    Returns ArrayPoint2[]

  • Sets all vertexes of this shape.

    Parameters

    Returns this