VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
geometry
circle.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2005 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
11
#include "
geometry/geometryDefines.h
"
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.
22
class
DT_DLL_geometry
DtCircle
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
;
47
DtPoint
myCenter
;
48
};
49
50
#endif
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)