Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Methods

Constructors

  • new Circle(x: number, y: number, radius: number): Circle
  • Circle constructor, initialized position and radius

    Parameters

    • x: number

      X coordinate of the position

    • y: number

      Y coordinate of the position

    • radius: number

      Circle's radius

    Returns Circle

Properties

position: ICoordinates

Range position

radius: number

Methods

  • intersects(range: Range): boolean
  • Check if the given range intersects the circle

    Parameters

    • range: Range

      the range to check

    Returns boolean

    true or false, checking if the range is intersecting with the circle