import { prefab } from '@diez/engine' ; /**
 * Point data.
 */ export interface Point2DData { /**
     * The x value of the point.
     */ x : number ; /**
     * The y value of the point.
     */ y : number ; } noinheritdoc export class Point2D extends prefab < Point2DData > ( ) { defaults = { x : 0 , y : 0 , } ; /**
     * Creates a two dimensional point.
     */ static make ( x , y ) { return new Point2D ( { x , y } ) ; } toPresentableValue ( ) { return `[${ this . x }, ${ this . y }]` ; } }