Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
simulators
simulation
Commits
dd6973b7
Commit
dd6973b7
authored
Sep 26, 2019
by
Jannik Matthias Decker
Browse files
Update Vehicle.java
parent
1c9e8358
Pipeline
#187955
passed with stage
in 2 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
vehicle/src/main/java/simulation/vehicle/Vehicle.java
View file @
dd6973b7
...
@@ -417,7 +417,7 @@ public class Vehicle{
...
@@ -417,7 +417,7 @@ public class Vehicle{
public
boolean
isAtLocation
(
RealVector
location2D
){
public
boolean
isAtLocation
(
RealVector
location2D
){
RealVector
vehiclePos2D
=
new
ArrayRealVector
(
new
double
[]{
physicalVehicle
.
getPosition
().
getEntry
(
0
),
physicalVehicle
.
getPosition
().
getEntry
(
1
)});
RealVector
vehiclePos2D
=
new
ArrayRealVector
(
new
double
[]{
physicalVehicle
.
getPosition
().
getEntry
(
0
),
physicalVehicle
.
getPosition
().
getEntry
(
1
)});
return
location2D
.
getDistance
(
vehiclePos2D
)
<
1.
5
;
return
location2D
.
getDistance
(
vehiclePos2D
)
<
1.
8
;
}
}
/**
/**
* @return true if it's an EV
* @return true if it's an EV
...
...
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