Path: Common/Transform
% Computes the transformation matrix from an r, phi, theta frame to a standard cartesian frame. In an RPT frame, r is the radial direction, phi is 'east', and theta is in the direction of co-elevation. When theta is zero the r vector is in the xy-plane. -------------------------------------------------------------------------- Form: cRPT2Cart = RPhiTheta2Cart(r) -------------------------------------------------------------------------- ------ Inputs ------ position (3,1) Position in cartesian coordinates. ------- Outputs ------- cRPT2Cart (3,3) The transformation matrix --------------------------------------------------------------------------
Math: Linear/Cross Math: Linear/Unit
Back to the Common Module page