Generic function to extract the location from objects that have location information.
Examples
t <- linear_time(
1:3,
cal_time_solar_sunset$day(1L, lat = -37.8136, lon = 144.9631)
)
loc_longitude(t)
#> [1] 144.9631 144.9631 144.9631
loc_latitude(t)
#> [1] -37.8136 -37.8136 -37.8136
loc_altitude(t)
#> [1] 0 0 0