Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michael Ochmann
trakr.
Commits
7f351f1d
Commit
7f351f1d
authored
May 16, 2018
by
Michael Ochmann
Browse files
.
parent
321adf06
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/javascript/HeightMap.js
View file @
7f351f1d
...
...
@@ -41,8 +41,8 @@ class HeightMap {
addPoint
(
geoPoint
)
{
if
(
geoPoint
.
constructor
.
name
!==
"
GeoPoint
"
)
throw
new
TypeError
(
"
an object of type 'GeoPoint' must be passed.
"
);
if
(
this
.
points
.
length
>
0
&&
this
.
points
[
0
].
distance
(
geoPoint
)
<
5
)
throw
new
TypeError
(
"
an object of type 'GeoPoint' must be p
1
assed.
"
);
if
(
this
.
points
.
length
>
0
&&
this
.
points
[
this
.
points
.
length
-
1
].
distance
(
geoPoint
)
<
5
)
return
;
$
(
"
#points
"
).
html
(
this
.
points
.
length
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment