summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/graph/point.ts
blob: 8fece5af9970ef8c0413882286e64e37e663fb23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * Created by obarda on 11/7/2016.
 */
export class Point {
    /**
     * The two-argument constructor produces the Point(x, y).
     * @param {number} x
     * @param {number} y
     */
    constructor(x?:number, y?:number) {
        this.x = x || 0;
        this.y = y || 0;
    }

    /**Gets or sets the x value of the Point.*/
    x:number;

    /**Gets or sets the y value of the Point.*/
    y:number;
}