|
36 | 36 | //! This module provides several types and functions to help transform a set of coordinates
|
37 | 37 | //! from one reference frame to another, and from one epoch to another. Several sets of
|
38 | 38 | //! transformation parameters are included for converting between common reference frames.
|
39 |
| -//! To start out, you must have a [`Coordinate`](crate::coords::Coordinate) that you want to |
40 |
| -//! transform. This consists of a position, an epoch, and a reference frame as well as an optional |
41 |
| -//! velocity. You then need to get the [`Transformation`](crate::reference_frame::Transformation) |
42 |
| -//! object that describes the transformation from the reference frame of the coordinate to the |
43 |
| -//! desired reference frame. You can then call the `transform` method on the transformation object |
44 |
| -//! to get a new coordinate in the desired reference frame. This transformation will change the |
45 |
| -//! position and velocity of the coordinate, but it does not the change the epoch of the coordinate. |
46 |
| -//! If you need to change the epoch of the coordinate you will need to use the [`Coordinate::adjust_epoch`](crate::coords::Coordinate::adjust_epoch) |
| 39 | +//! To start out, you must have a [`Coordinate`] that you want to transform. This consists of a |
| 40 | +//! position, an epoch, and a reference frame as well as an optional velocity. You then need to |
| 41 | +//! get the [`Transformation`] object that describes the transformation from the reference |
| 42 | +//! frame of the coordinate to the desired reference frame. You can then call the `transform` |
| 43 | +//! method on the transformation object to get a new coordinate in the desired reference frame. |
| 44 | +//! This transformation will change the position and velocity of the coordinate, but it does |
| 45 | +//! not the change the epoch of the coordinate. If you need to change the epoch of the |
| 46 | +//! coordinate you will need to use the [`Coordinate::adjust_epoch`](crate::coords::Coordinate::adjust_epoch) |
47 | 47 | //! method which uses the velocity of the coordinate to determine the position at the new epoch.
|
48 | 48 | //!
|
49 | 49 | //! # Example
|
@@ -304,7 +304,7 @@ pub fn get_transformation(
|
304 | 304 |
|
305 | 305 | /// A helper type for finding transformations between reference frames that require multiple steps
|
306 | 306 | ///
|
307 |
| -/// This object can be used to determine which calls to [`get_transformation`](crate::reference_frame::get_transformation) |
| 307 | +/// This object can be used to determine which calls to [`get_transformation`] |
308 | 308 | /// are needed when a single transformation does not exist between two reference frames.
|
309 | 309 | pub struct TransformationGraph {
|
310 | 310 | graph: HashMap<ReferenceFrame, HashSet<ReferenceFrame>>,
|
|
0 commit comments