VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
circle.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: circle.h,v $ $Revision: 1.4 $ $State: Exp $
7 ******************************************************************************/
8 #ifndef circle_H_
9 #define circle_H_
10 
12 #include "geometry/point.h"
13 
14 //
15 // \file circle.h
16 // \brief This file contains the DtCircle class declaration.
17 //
18 
19 //
20 // The DtCircle class represents a simple mathematical circle.
21 // \note The z component of the center point is \b always zero.
23 {
24 public:
25  DtCircle(DtPoint newCenter, double newRadius);
26 
27  virtual ~DtCircle();
28 
29  // This class is copyable and assignable. Because the implementations are so
30  // simple, the compiler generated ones are sufficient.
31 // DtCircle(const DtCircle& original);
32 // const DtCircle& operator=(const DtCircle& 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 #endif
Definition: circle.h:22
#define DT_DLL_geometry
Definition: geometryDefines.h:23
DtPoint myCenter
Definition: circle.h:47
double myRadius
Definition: circle.h:46
Definition: point.h:34

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)