VR-Forces 4.8 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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
DtCircle
Definition:
circle.h:22
geometryDefines.h
point.h
testInvariant
*bool testInvariant() const
DT_DLL_geometry
#define DT_DLL_geometry
Definition:
geometryDefines.h:23
DtCircle::myCenter
DtPoint myCenter
Definition:
circle.h:47
DtCircle::myRadius
double myRadius
Definition:
circle.h:46
DtPoint
Definition:
point.h:34
Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (
www.mak.com
)