abcrotation - void abcrotation(double theta, double &...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// PRE: theta is the zenith angle rotation of theta with respect to the // the original direction of propagation of the photon and is // measured in radians, // and ef_x, ef_y, and ef_z are the components of the unit vector // decribing the original direction of photon propogration // and a call to srand48() has been made // POST: This procedure has found the unit vector components of the photon direction // of travel after a zenith angle rotation of theta with respect to the // original direction of propagation of the photon followed by a random // azimuth angle rotation about the original direction of photon propagation. // The unit vector componenets are stored in ef_x, ef_y, and ef_z. // NOTE: This algorithm originates from Marchuk et al. and a proof was provided by // Alexander Marshak around the year of 2004. It was provided by the PSU // Meteorology dept. and modified slightly for CMPSC 201 students. { double a,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 02/10/2011.

Page1 / 2

abcrotation - void abcrotation(double theta, double &...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online