fangflecked-old

old project. ive since repurposed the name
git clone git://moonbender.net/fangflecked-old
Log | Files | Refs | README

math.qc (202B)


      1 
      2 
      3 vector(vector a, vector b) crossproduct =
      4 {
      5 	local vector result;
      6 	result_x = (a_y * b_z) - (a_z * b_y);
      7 	result_y = (a_z * b_x) - (a_x * b_z);
      8 	result_z = (a_x * b_y) - (a_y * b_x);
      9 	return result;
     10 }