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 off64coordinates.from- TheCoordinateSystemof the input point.to- The targetCoordinateSystem.
§Returns
A Result containing a Vec<f64> of the transformed coordinates.
§Errors
Returns an error if the transformation rules cannot be found or if expression evaluation fails.