Last change
on this file since 80 was
80,
checked in by Sam Hocevar, 12 years ago

 Adding the Golgotha source code. Not sure what's going to be interesting
in there, but since it's all public domain, there's certainly stuff to
pick up.

File size:
1.0 KB

Line  

1  /********************************************************************** <BR>


2  This file is part of Crack dot Com's free source code release of


3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for


4  information about compiling & licensing issues visit this URL</a>


5  <PRE> If that doesn't help, contact Jonathan Clark at


6  golgotha_source@usa.net (Subject should have "GOLG" in it)


7  ***********************************************************************/


8 


9  #ifdef _MANGLE_INC


10  #include "TRANS~W4.HH"


11  #else


12  #include "transform.hh"


13  #endif


14  #include "math/pi.hh"


15 


16  main()


17  {


18  i4_transform_class ma,mb,mc;


19  i4_3d_vector a,b,c;


20 


21  a.set(2,1,1);


22  b.set(1,2,1);


23 


24  ma.identity();


25  ma.transform(a,c);


26  ma.transform(b,c);


27 


28  mb.translate(1.0,1.0,1.0);


29  mb.transform(a,c);


30  mb.transform(b,c);


31 


32  mc.multiply(ma,mb);


33  mc.transform(a,c);


34  mc.transform(b,c);


35 


36  mb.rotate_x(i4_pi());


37  mb.transform(a,c);


38  mb.transform(b,c);


39 


40  ma.multiply(mc,mb);


41  ma.transform(a,c);


42  ma.transform(b,c);


43  }


Note: See
TracBrowser
for help on using the repository browser.