UNPKG
potrace
Version:
latest (2.1.8)
2.1.8
2.1.6
2.1.5
2.1.4
2.1.2
2.1.1
2.0.1
2.0.0
1.1.0
1.0.0
Potrace in Javascript, for NodeJS
github.com/tooolbox/node-potrace
tooolbox/node-potrace
potrace
/
lib
/
types
/
Point.js
14 lines
(11 loc)
•
189 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
;
function
Point
(
x, y
) {
this
.
x
= x ||
0
;
this
.
y
= y ||
0
; }
Point
.
prototype
= {
copy
:
function
(
) {
return
new
Point
(
this
.
x
,
this
.
y
); } };
module
.
exports
=
Point
;