Function traffloat::space::transform_cylinder[][src]

pub fn transform_cylinder(
    x: f64,
    y: f64,
    zn: f64,
    zp: f64
) -> Matrix<f64, Const<{_: usize}>, Const<{_: usize}>, ArrayStorage<f64, 4_usize, 4_usize>>
Expand description

Creates a transformation matrix from a unit cylinder cuboid to one with base center (0, 0, -zn) and top center (0, 0, zn), with cross-section ellipse radii x, y on the X, Y axes.