home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / oct93 / graphics / graphtal.lha / Graphtal / Cylinder.h < prev    next >
C/C++ Source or Header  |  1992-11-19  |  1KB  |  44 lines

  1. /*
  2.  * Cylinder.h  - class definition for geometric object cylinder.
  3.  *
  4.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  5.  *                     University of Berne, Switzerland
  6.  * Copyright (C) 1989, 1991, Craig E. Kolb
  7.  * All rights reserved.
  8.  *
  9.  * This software may be freely copied, modified, and redistributed
  10.  * provided that this copyright notice is preserved on all copies.
  11.  *
  12.  * You may not distribute this software, in whole or in part, as part of
  13.  * any commercial product without the express consent of the authors.
  14.  *
  15.  * There is no warranty or other guarantee of fitness of this software
  16.  * for any purpose.  It is provided solely "as is".
  17.  *
  18.  */
  19.  
  20. #ifndef Cylinder_H
  21. # define Cylinder_H
  22.  
  23. #include "GeoObject.h"
  24. #include "Polygon.h"
  25.  
  26. //___________________________________________________________ Cylinder
  27.  
  28. class Cylinder : public GeoObject 
  29. {
  30. public:
  31.   static GeoObject* create(real, const Vector&, const Vector&);
  32.  
  33.   int intersect(const Ray&, real, real&);
  34.   Vector normal(const Vector&) const;
  35.   PolygonList* tesselate(const BoundingBox&);
  36.  
  37.   int setTransform(TransMatrix*);
  38.  
  39. private:
  40.   Cylinder(real, const Vector&, const Vector&);
  41. };
  42.  
  43. #endif // Cylinder_H
  44.