Fade2D Documentation pages v1.86
Delaunay Features
Circle2.h
1 // Copyright (C) Geom Software e.U, Bernhard Kornberger, Graz/Austria
2 //
3 // This file is part of the Fade2D library. The student license is free
4 // of charge and covers personal non-commercial research. Licensees
5 // holding a commercial license may use this file in accordance with
6 // the Commercial License Agreement.
7 //
8 // This software is provided AS IS with NO WARRANTY OF ANY KIND,
9 // INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS
10 // FOR A PARTICULAR PURPOSE.
11 //
12 // Please contact the author if any conditions of this licensing are
13 // not clear to you.
14 //
15 // Author: Bernhard Kornberger, bkorn (at) geom.at
16 // http://www.geom.at
17 
18 
19 
20 #pragma once
21 #include "Point2.h"
22 
23 #include "common.h"
24 #if GEOM_PSEUDO3D==GEOM_TRUE
25  namespace GEOM_FADE25D {
26 #elif GEOM_PSEUDO3D==GEOM_FALSE
27  namespace GEOM_FADE2D {
28 #else
29  #error GEOM_PSEUDO3D is not defined
30 #endif
31 
37 class Circle2
38 {
39 public:
48  CLASS_DECLSPEC
49  Circle2(double x,double y,double sqRadius_);
57  CLASS_DECLSPEC
58  Circle2(const Point2& center_,double sqRadius_);
59  CLASS_DECLSPEC
60  ~Circle2();
65  CLASS_DECLSPEC
66  double getRadius();
71  CLASS_DECLSPEC
72  double getSqRadius();
77  CLASS_DECLSPEC
78  Point2 getCenter();
79  CLASS_DECLSPEC
80  friend std::ostream &operator<<(std::ostream &stream, Circle2 b);
81 protected:
82  Point2 center;
83  double sqRadius;
84 };
85 
86 } // (namespace)
GEOM_FADE2D::Point2
Point.
Definition: Point2.h:40
GEOM_FADE2D::Circle2
Circle for visualization.
Definition: Circle2.h:37