Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
d2890e8c
Commit
d2890e8c
authored
Mar 11, 2019
by
Christina Maria Mayr
Browse files
add TestVTriangle
parent
f0e10d96
Pipeline
#96970
passed with stages
in 126 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereUtils/tests/org/vadere/util/geometry/shapes/VTriangle
Test
.java
→
VadereUtils/tests/org/vadere/util/geometry/shapes/
Test
VTriangle.java
View file @
d2890e8c
...
...
@@ -12,10 +12,10 @@ import java.time.temporal.ChronoUnit;
import
static
org
.
junit
.
Assert
.*;
public
class
VTriangle
Test
{
public
class
Test
VTriangle
{
// following logger writes to ASCI output file VadereUtils/log.out
private
static
Logger
logger
=
Logger
.
getLogger
(
VTriangle
Test
.
class
);
private
static
Logger
logger
=
Logger
.
getLogger
(
Test
VTriangle
.
class
);
// create y-symmetric 60°-triangle
private
double
radiusShould
=
1.0
;
...
...
@@ -155,8 +155,10 @@ public class VTriangleTest {
VPoint
vPoint
=
vTriangle_symY_60degree
.
getIncenter
();
double
x
=
vPoint
.
getX
();
double
y
=
vPoint
.
getY
();
//assertEquals(vPoint, new VPoint(0.0,0.0), GeometryUtils.DOUBLE_EPS);
double
eps
=
Math
.
max
(
Math
.
abs
(
x
-
0.0
),
Math
.
abs
(
y
-
0.0
));
// Point (0,0) is incenter
assertTrue
(
eps
<
GeometryUtils
.
DOUBLE_EPS
);
// assertEquals(0.0, vPoint.distance(new VPoint(x, y)), GeometryUtils.DOUBLE_EPS);
}
...
...
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