frame

Function frame 

Source
fn frame(
    position: [f64; 3],
    transform: Transform,
) -> ([[f64; 3]; 3], [[[f64; 3]; 3]; 2])
Expand description

Rotation of vector components into the output frame of transform, and its derivatives with respect to the (at most two) angles it depends on. Inverse transforms use the transposed matrices. Polar vectors use the first two rows/columns; no radial metric factors occur.