pub fn project_ortho(x: &[f64], y: &[f64], z: &[f64]) -> (Vec<f64>, Vec<f64>)Expand description
Projects 3D points onto a 2D plane using orthographic projection.
Uses the MATLAB default view (azimuth = −37.5°, elevation = 30°). All three slices must have the same length.
§Examples
use ccalc_plot::proj3d::project_ortho;
let x = [1.0, 0.0, -1.0];
let y = [0.0, 1.0, 0.0];
let z = [0.0, 0.0, 1.0];
let (px, py) = project_ortho(&x, &y, &z);
assert_eq!(px.len(), 3);
assert_eq!(py.len(), 3);