home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / DemoApps / Graphics / 2D_3D / Tester3D / Source / Transformation3D.h < prev    next >
Encoding:
Text File  |  1990-07-07  |  891 b   |  31 lines

  1. /* Transformation3D.h */
  2.  
  3. /*    Transformation3D is an abstract superclass. It should be used for objects
  4.     (such as Linear3D) which implement various 3D transformations that can be
  5.     done to variables of type Vector3D (defined in 3D.h). 
  6.     Matrix can handle linear transformations, but subclasses of either
  7.     Transformation 3D or Matrix should be created for
  8.     faster or non-linear operations. */
  9.     
  10.  
  11.  
  12. #import <objc/Object.h>
  13. #import "3D.h"
  14.  
  15. @interface Transformation3D:Object
  16. {
  17. }
  18.  
  19. - operateOn:(vector3D *)theVect;
  20.  
  21. /*    - operateOn should be a DESTRUCTIVE routine wich modifies the structure
  22.     which theVect points to in whatever way the subclass desires */
  23.     
  24. - operateOn:(vector3D *)theVects howMany:(int)count;
  25.  
  26. /* - operateOn: howMany: should be a way to perform the same operation on
  27.     count Vector3D's. Again it should be destructive, and modify theVects[0]
  28.     through theVects[count - 1] */
  29.     
  30. @end
  31.