Class Utils
- java.lang.Object
-
- edu.ubo.satellitebeacons.main.simulation.utils.Utils
-
public final class Utils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getSatelliteSpeed(Position p)
Get satellite speed according to its position.
-
-
-
Method Detail
-
getSatelliteSpeed
public static int getSatelliteSpeed(Position p)
Get satellite speed according to its position.- Parameters:
p
- Position to the satellite.- Returns:
- Position.getY() * Constants.SATELLITE_SPEED_FACTOR + Constants.SATELLITE_MIN_SPEED
-
-