VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sphere.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: sphere.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 #ifndef sphere_H_
9 #define sphere_H_
10 
12 #include "geometry/point.h"
13 #include "geometry/extent.h"
14 
15 //
16 // \file sphere.h
17 // \brief DtSphere
18 //
19 
20 // \brief Representation of a simple mathematical sphere.
21 // \note The radius component of the center point is \b always greater than zero.
23 {
24 public:
25  DtSphere(DtPoint newCenter, double newRadius);
26 
27  virtual ~DtSphere();
28 
29  // This class is copyable and assignable. Because the implementations are so
30  // simple, the compiler generated ones are sufficient.
31  // DtSphere(const DtSphere& original);
32  // const DtSphere& operator=(const DtSphere& original);
33 
34  double radius() const;
35  bool setRadius(double newRadius);
36 
37  DtPoint center() const;
38  void setCenter(DtPoint& newCenter);
39 
40 protected:
41 
42  bool testInvariant() const;
43 
44 private:
45 
46  double myRadius;
48 };
49 
50 // \return The extent of the provided sphere.
52 
53 #endif

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)