Skip to main content

sag_toroidal

Function sag_toroidal 

Source
pub fn sag_toroidal(
    c: f64,
    k: f64,
    asph: &[f64],
    cx: f64,
    x: f64,
    y: f64,
) -> (f64, f64, f64)
Expand description

トロイダル面のサグと (dz/dx, dz/dy)。YZ 面の曲線 z(y)(c・k・asph)を、頂点から 1/cx 離れた Y 軸に平行な軸の周りに回した面(cx = 0 は円柱面)。軸の向こう側の点は NaN