import { Geometry } from "./geometry" ; export class Point extends Geometry { static RADIUS : number = 10 ; private _x : number ; private _y : number ; constructor ( x , y ) { super ( ) ; this . _x = x ; this . _y = y ; } ; draw ( ctx ) { ctx . save ( ) ; ctx . strokeStyle = "#ff0000" ; ctx . fillStyle = "#ff0000" ; ctx . beginPath ( ) ; ctx . arc ( this . _x , this . _y , Point . RADIUS , 0 , Math . PI * 2 , true ) ; ctx . fill ( ) ; ctx . stroke ( ) ; ctx . restore ( ) ; } }