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

    • canvasSize: IDimension

      the canvas size, used for warp formulas

    Returns CircleWarp

Properties

position: ICoordinates

Range position

radius: number

Methods

  • Check if the given point is inside the circle

    Returns

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

    Parameters

    Returns boolean

  • Check if the given range intersects the circle

    Returns

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

    Parameters

    • range: Range

      the range to check

    Returns boolean