function [alpha,beta,gamma] = trend_plunge2alpha_beta_gamma(t,p)
% function [alpha,beta,gamma] = trend_plunge2alpha_beta_gamma(t,p)
% Template for function to convert the trend and plunge of a line
% to the direction cosines for the line.  
% Lines 24-24 must be completed for this to work.
% YOU NEED TO KNOW WHAT THE ORIENTATION OF THE X,Y,Z REFERENCE
% FRAME IS RELATIVE TO NORTH AND DOWN FOR THIS TO MAKE SENSE!
% See also Matlab's sph2cart function.
% Input parameters
% t = trend of line (in radians).  
%    Angle between the projection of the line in the horizontal plane
%    and the direction of true north. 
% p = plunge of line (in radians)
%  Angle between the line and the x,y plane
% Output papameters
alpha = cosine of angle between line and x-axis
beta  = cosine of angle between line and y-axis
gamma = cosine of angle between line and z-axis
Example:
[alpha,beta,gamma] = trend_plunge2alpha_beta_gamma(10*pi/180,30*pi/180

alpha = trigfunction(t).*trigfunction(p);
beta  = trigfunction(t).*trigfunction(p);
gamma = trigfunction(t).*trigfunction(p);
