transform_point

Function transform_point 

Source
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 of f64 coordinates.
  • from - The CoordinateSystem of the input point.
  • to - The target CoordinateSystem.

§Returns

A Result containing a Vec<f64> of the transformed coordinates, or an error string.