Class Circle

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(x: number, y: number, radius: number): Circle

Parameters

  • x: number
  • y: number
  • radius: number

Returns

Circle

Properties

public radius: number

public x: number

public y: number

Methods

public clone(): Circle

Returns

Circle

public contains(x: number, y: number): boolean

Parameters

  • x: number
  • y: number

Returns

boolean