Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
0b1f21be
Commit
0b1f21be
authored
Sep 23, 2016
by
Jakob Schöttl
Browse files
Remove confusing variable
parent
04ddcb92
Changes
1
Hide whitespace changes
Inline
Side-by-side
VadereSimulator/src/org/vadere/simulator/models/potential/fields/AbstractPotentialFieldTarget.java
View file @
0b1f21be
...
...
@@ -53,7 +53,6 @@ public abstract class AbstractPotentialFieldTarget implements IPotentialTargetGr
public
double
getTargetPotential
(
final
VPoint
pos
,
final
Agent
ped
)
{
CellGrid
potentialField
;
Topography
floor
=
topography
;
double
targetPotential
=
Double
.
MAX_VALUE
;
int
targetId
=
-
1
;
...
...
@@ -66,14 +65,14 @@ public abstract class AbstractPotentialFieldTarget implements IPotentialTargetGr
}
// Pedestrian has reached the target
if
(
floor
.
getTarget
(
targetId
)
!=
null
)
{
if
(
floor
.
getTarget
(
targetId
).
getShape
().
contains
(
pos
))
{
if
(
topography
.
getTarget
(
targetId
)
!=
null
)
{
if
(
topography
.
getTarget
(
targetId
).
getShape
().
contains
(
pos
))
{
return
0
;
// the arrival time is zero
}
}
// Pedestrain inside an obstacle
for
(
ScenarioElement
b
:
floor
.
getObstacles
())
{
for
(
ScenarioElement
b
:
topography
.
getObstacles
())
{
if
(
b
.
getShape
().
contains
(
pos
))
{
return
Double
.
MAX_VALUE
;
}
...
...
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