This repository was archived by the owner on Dec 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPoint.js
47 lines (47 loc) · 1.39 KB
/
Point.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* The Point object represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.
*
* @class Point
* @module StructureJS
* @submodule geom
* @constructor
* @author Robert S. (www.codeBelt.com)
*/
var Point = (function () {
function Point(x, y) {
if (x === void 0) { x = 0; }
if (y === void 0) { y = 0; }
/**
* The horizontal coordinate of the point.
*
* @property x
* @type {number}
* @public
*/
this.x = 0;
/**
* The vertical coordinate of the point.
*
* @property y
* @type {number}
* @public
*/
this.y = 0;
this.x = x;
this.y = y;
}
return Point;
}());
exports.default = Point;
});