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