pub fn transform_point(
point: &[f64],
from: CoordinateSystem,
to: CoordinateSystem,
) -> Result<Vec<f64>, String>
Expand description
Transforms a numerical point from one coordinate system to another.
This function leverages symbolic transformation rules and then numerically evaluates
the resulting expressions. For performance-critical applications, consider using
transform_point_pure
.
§Arguments
point
- The point to transform as a slice off64
coordinates.from
- TheCoordinateSystem
of the input point.to
- The targetCoordinateSystem
.
§Returns
A Result
containing a Vec<f64>
of the transformed coordinates, or an error string.