mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2025-05-17 21:39:23 +02:00
Simu: allow Locations to determine distances
This commit is contained in:
parent
01689f7b7e
commit
03b2ddf117
2 changed files with 15 additions and 3 deletions
|
@ -43,9 +43,9 @@ class Signal():
|
|||
|
||||
raise NotImplementedError
|
||||
|
||||
def spatial_time_offset(self, x_f, velocity=None, x_0=None):
|
||||
def spatial_time_offset(self, x_f, x_0=None, velocity=None):
|
||||
"""
|
||||
Calculate the time offset caused by a spatial difference.
|
||||
Calculate the time offset caused by a spatial distance.
|
||||
"""
|
||||
if velocity is None:
|
||||
velocity = self.velocity
|
||||
|
@ -57,7 +57,7 @@ class Signal():
|
|||
|
||||
def temporal_time_offset(self, t_f, t_0=None):
|
||||
"""
|
||||
Calculate the time offset caused by a temporal difference.
|
||||
Calculate the time offset caused by a temporal distance.
|
||||
"""
|
||||
if t_0 is None:
|
||||
t_0 = self.t_0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue