Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
vadere
vadere
Commits
c74b2821
Commit
c74b2821
authored
Aug 28, 2018
by
Daniel Lehmberg
Browse files
account for numerical differences and more info in error msg
parent
8babffa5
Pipeline
#66847
failed with stages
in 55 minutes and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereUtils/src/org/vadere/util/voronoi/Face.java
View file @
c74b2821
...
...
@@ -77,9 +77,9 @@ public class Face {
*
(
limits
.
yHigh
-
limits
.
yLow
);
try
{
if
(
result
<
0
||
result
>
maxArea
)
{
String
message
=
result
+
" is a illegal area size
(Object "
+
id
+
")
.
"
;
if
(
result
<
0
||
Math
.
abs
(
result
-
maxArea
)
>
1
E
-
15
)
{
String
message
=
"(Object "
+
id
+
") Area of face is: "
+
result
+
"
. This
is a
n
illegal area size
"
+
"because result has to be positive and less than maxArea (= "
+
maxArea
+
")"
;
throw
new
IllegalStateException
(
message
);
}
}
catch
(
IllegalStateException
e
)
{
...
...
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