Last change
on this file since 2e06c4 was f70c2a, checked in by Tillmann Crueger <crueger@…>, 15 years ago |
Added const correctness to plane class and simplified interface
|
-
Property mode
set to
100644
|
File size:
420 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * Space.hpp
|
---|
3 | *
|
---|
4 | * Created on: Apr 30, 2010
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef SPACE_HPP_
|
---|
9 | #define SPACE_HPP_
|
---|
10 |
|
---|
11 | class Vector;
|
---|
12 |
|
---|
13 | class Space
|
---|
14 | {
|
---|
15 | public:
|
---|
16 | Space();
|
---|
17 | virtual ~Space();
|
---|
18 |
|
---|
19 | virtual double distance(const Vector &point) const=0;
|
---|
20 | virtual Vector getClosestPoint(const Vector &point) const=0;
|
---|
21 | virtual bool isContained(const Vector &point) const;
|
---|
22 | virtual bool hasZero() const;
|
---|
23 |
|
---|
24 | };
|
---|
25 |
|
---|
26 | #endif /* SPACE_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.