home *** CD-ROM | disk | FTP | other *** search
/ VRML Tools for 3D Cyberspace / VRML_Tools_For_3D_Cyberspace.iso / amber / include / scc_ray.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-01  |  1.5 KB  |  54 lines

  1. ////////////////////////////////////////////////////////////////////////
  2. //  DIVE Laboratories, Inc.
  3. //  Copyright(c) 1995
  4. //**********************************************************************
  5. //  NOTICE: THIS [PROGRAM, DATABASE, DOCUMENT].CONSISTS OF TRADE SECRETS
  6. //  THAT ARE THE PROPERTY OF DIVE LABORATORIES, INC. THE CONTENTS MAY NOT
  7. //  BE USED OR DISCLOSED WITHOUT EXPRESS WRITTEN PERMISSION OF THE OWNER.
  8. //**********************************************************************
  9. //  FILE:   scc_ray.hpp
  10. //
  11. //  DESCRIPTION
  12. //        static collision class ray class
  13. //
  14. //  Author: B. Green
  15. //
  16. //  Modification History:
  17. //    8/17/95 created
  18. //    01/17/96    Overhauled. Integrated with Amber 1.3
  19. //
  20. ////////////////////////////////////////////////////////////////////////
  21.  
  22. #ifndef _SCC_RAY_HPP
  23. #define _SCC_RAY_HPP
  24.  
  25. #include<stdio.h>
  26. #include"vrtypes.hpp"
  27.  
  28. ////////////////////////////////////////////////////////////////////////
  29.  
  30. class rayClass {
  31.  
  32.     public:
  33.  
  34.         Vres mag;
  35.  
  36.         V3    pos,
  37.             dir;
  38.  
  39.         void init(V3 ptFrom,V3 ptTo);
  40.         void computePoint(Vres time,V3 newPos);
  41.  
  42.         rayClass();
  43.         rayClass(V3 ptFrom,V3 ptTo);
  44.         ~rayClass();
  45.  
  46. };
  47.  
  48. ////////////////////////////////////////////////////////////////////////
  49. //  NOTICE: THIS [PROGRAM, DATABASE, DOCUMENT].CONSISTS OF TRADE SECRETS
  50. //  THAT ARE THE PROPERTY OF DIVE LABORATORIES, INC. THE CONTENTS MAY NOT
  51. //  BE USED OR DISCLOSED WITHOUT EXPRESS WRITTEN PERMISSION OF THE OWNER.
  52. ////////////////////////////////////////////////////////////////////////
  53. #endif
  54.