Hierarchy

Constructors

Properties

Methods

Constructors

  • 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

Circle's radius

Methods

  • Check if the given point is inside the circle

    Parameters

    Returns boolean

    true or false, checking if the given point is inside the circle

  • 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