UGDK
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
circle.h
Go to the documentation of this file.
1
#ifndef PYRAMIDWORKS_GEOMETRY_CIRCLE_H_
2
#define PYRAMIDWORKS_GEOMETRY_CIRCLE_H_
3
4
#include <
pyramidworks/geometry/geometricshape.h
>
5
6
namespace
pyramidworks {
7
namespace
geometry {
8
11
class
Circle
:
public
GeometricShape
{
12
public
:
14
Circle
(
double
_radius) :
GeometricShape
(), radius_(_radius) {}
15
17
18
double
radius
()
const
{
return
radius_; }
19
21
22
void
set_radius
(
double
_radius) { radius_ = _radius; }
23
24
bool
Intersects
(
const
ugdk::Vector2D
& this_pos,
const
GeometricShape
*obj,
const
ugdk::Vector2D
& that_pos)
const
;
25
bool
Intersects
(
const
ugdk::Vector2D
& this_pos,
const
Rect
*obj,
const
ugdk::Vector2D
& that_pos)
const
;
26
bool
Intersects
(
const
ugdk::Vector2D
& this_pos,
const
Circle
*obj,
const
ugdk::Vector2D
& that_pos)
const
;
27
bool
Intersects
(
const
ugdk::Vector2D
& this_pos,
const
ConvexPolygon
*obj,
const
ugdk::Vector2D
& that_pos)
const
;
28
ugdk::ikdtree::Box<2>
GetBoundingBox
(
const
ugdk::Vector2D
& position)
const
;
29
30
private
:
31
double
radius_;
32
};
33
34
}
// namespace geometry
35
}
// namespace pyramidworks
36
37
#endif
/* PYRAMIDWORKS_GEOMETRY_CIRCLE_H_ */
src
pyramidworks
geometry
circle.h
Generated on Sat Oct 13 2012 02:25:11 for UGDK by
1.8.2