SDXFrameWork 0.10 SDXFrameWork

- Main Page
- Related Pages
- Classes

All Classes Namespaces Functions Variables Enumerations Enumerator Pages
ShapeHit.h
1 //Copyright © 2014 SDXFramework
2 //[License]GNU Affero General Public License, version 3
3 //[Contact]http://sourceforge.jp/projects/dxframework/
4 #pragma once
5
6 //Shape系の衝突判定の実装
7 namespace SDX
8 {
9 bool Complex::Hit(const Point *point) const
10 {
11 return point->Hit(this);
12 }
13 bool Complex::Hit(const Line *line) const
14 {
15 return line->Hit(this);
16 }
17 bool Complex::Hit(const Rect *rect) const
18 {
19 return rect->Hit(this);
20 }
21 bool Complex::Hit(const Circle *circle) const
22 {
23 return circle->Hit(this);
24 }
25 bool Point::Hit(const Line *line) const
26 {
27 return line->Hit(this);
28 }
29 bool Point::Hit(const Rect *rect) const
30 {
31 return rect->Hit(this);
32 }
33 bool Point::Hit(const Circle *circle) const
34 {
35 return circle->Hit(this);
36 }
37
38 bool Line::Hit(const Rect *rect) const
39 {
40 return rect->Hit(this);
41 }
42 bool Line::Hit(const Circle *circle) const
43 {
44 return circle->Hit(this);
45 }
46
47 bool Rect::Hit(const Circle *circle) const
48 {
49 return circle->Hit(this);
50 }
51 }
SDX::Rect
矩形を表す図形クラス.
Definition: Rect.h:22
SDX::Line
太さのある線を表す図形クラス.
Definition: Line.h:20
SDX::Point
点を表す図形クラス.
Definition: Point.h:22
SDX::Circle::Hit
bool Hit(const IShape *shape) const override
衝突判定.
Definition: Circle.h:88
SDX::Point::Hit
bool Hit(const IShape *shape) const override
衝突判定.
Definition: Point.h:95
SDX::Rect::Hit
bool Hit(const IShape *shape) const override
衝突判定.
Definition: Rect.h:141
SDX::Circle
円を表す図形クラス.
Definition: Circle.h:20
SDX::Line::Hit
bool Hit(const IShape *shape) const override
衝突判定.
Definition: Line.h:241
SDX::Complex::Hit
bool Hit(const IShape *shape) const override
衝突判定.
Definition: Complex.h:101