src/lib/myScript/common/generic/point.ts
Point
constructor(obj: PointParameters)
|
Defined in src/lib/myScript/common/generic/point.ts:28
|
getX |
getX()
|
Defined in src/lib/myScript/common/generic/point.ts:45
|
Get top-left x
Returns:
number
|
setX |
setX(x: number)
|
Defined in src/lib/myScript/common/generic/point.ts:55
|
Set top-left x
Parameters :
Returns:
void
|
getY |
getY()
|
Defined in src/lib/myScript/common/generic/point.ts:65
|
Get top-left y
Returns:
number
|
setY |
setY(y: number)
|
Defined in src/lib/myScript/common/generic/point.ts:75
|
Set top-left y
Parameters :
Returns:
void
|
getT |
getT()
|
Defined in src/lib/myScript/common/generic/point.ts:79
|
Returns:
number | Date
|
setT |
setT(t: number | Date)
|
Defined in src/lib/myScript/common/generic/point.ts:83
|
Returns:
void
|
getP |
getP()
|
Defined in src/lib/myScript/common/generic/point.ts:87
|
Returns:
number
|
setP |
setP(p: number)
|
Defined in src/lib/myScript/common/generic/point.ts:91
|
Returns:
void
|
getD |
getD()
|
Defined in src/lib/myScript/common/generic/point.ts:95
|
Returns:
number
|
setD |
setD(d: number)
|
Defined in src/lib/myScript/common/generic/point.ts:99
|
Returns:
void
|
getL |
getL()
|
Defined in src/lib/myScript/common/generic/point.ts:103
|
Returns:
number
|
setL |
setL(l: number)
|
Defined in src/lib/myScript/common/generic/point.ts:107
|
Returns:
void
|
d |
d: |
Defined in src/lib/myScript/common/generic/point.ts:27
|
l |
l: |
Defined in src/lib/myScript/common/generic/point.ts:28
|
p |
p: |
Defined in src/lib/myScript/common/generic/point.ts:26
|
t |
t: |
Defined in src/lib/myScript/common/generic/point.ts:25
|
x |
x: |
Defined in src/lib/myScript/common/generic/point.ts:23
|
y |
y: |
Defined in src/lib/myScript/common/generic/point.ts:24
|
export interface PointParameters {
x?: number;
y?: number;
t?: number | Date;
p?: number;
d?: number;
l?: number;
}
/**
* Point
*
* @export
* @class Point
*/
export class Point {
x: number;
y: number;
t: number | Date;
p: number;
d: number;
l: number;
constructor(obj?: PointParameters) {
this.x = obj && obj.x || 0;
this.y = obj && obj.y || 0;
this.t = obj && obj.t || 0;
this.p = obj && obj.p || 0;
this.d = obj && obj.d || 0;
this.l = obj && obj.l || 0;
}
/**
* Get top-left x
*
* @method getX
* @returns {Number}
*/
getX(): number {
return this.x;
};
/**
* Set top-left x
*
* @method setX
* @param {Number} x
*/
setX(x: number) {
this.x = x;
};
/**
* Get top-left y
*
* @method getY
* @returns {Number}
*/
getY(): number {
return this.y;
};
/**
* Set top-left y
*
* @method setY
* @param {Number} y
*/
setY(y: number) {
this.y = y;
};
getT(): number | Date {
return this.t;
};
setT(t: number | Date) {
this.t = t;
};
getP(): number {
return this.p;
};
setP(p: number) {
this.p = p;
};
getD(): number {
return this.d;
};
setD(d: number) {
this.d = d;
};
getL(): number {
return this.l;
};
setL(l: number) {
this.l = l;
};
}