VR-Forces 4.6.1 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
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
11
#include "
geometry/geometryDefines.h
"
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.
22
class
DT_DLL_geometry
DtSphere
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
;
47
DtPoint
myCenter
;
48
};
49
50
// \return The extent of the provided sphere.
51
DT_DLL_geometry
DtExtent
extentOfSphere
(
const
DtSphere
& sphere);
52
53
#endif
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)