Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
c7ef9728
Commit
c7ef9728
authored
Jun 01, 2017
by
amandaghassaei
Browse files
check fro divide by zero
parent
d1d4b185
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
c7ef9728
...
...
@@ -293,6 +293,9 @@
float
lengthAC
=
length
(
ac
);
float
lengthBC
=
length
(
bc
);
float
tol
=
0.0000001
;
if
(
abs
(
lengthAB
)
<
tol
||
abs
(
lengthBC
)
<
tol
||
abs
(
lengthAC
)
<
tol
)
continue
;
ab
/=
lengthAB
;
ac
/=
lengthAC
;
bc
/=
lengthBC
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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