|
Last change
on this file since 71910a was 71910a, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Made data internal data-structure of vector class private
- Replaced occurences of access to internals with operator
- moved Vector-class into LinAlg-Module
- Reworked Vector to allow clean modularization
- Added Plane class to describe arbitrary planes in 3d space
|
-
Property mode
set to
100644
|
|
File size:
725 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * Plane.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Apr 7, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef PLANE_HPP_
|
|---|
| 9 | #define PLANE_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include <memory>
|
|---|
| 12 |
|
|---|
| 13 | class Vector;
|
|---|
| 14 |
|
|---|
| 15 | class Plane
|
|---|
| 16 | {
|
|---|
| 17 | typedef std::auto_ptr<Vector> vec_ptr;
|
|---|
| 18 | public:
|
|---|
| 19 | Plane(const Vector &y1, const Vector &y2, const Vector &y3);
|
|---|
| 20 | Plane(const Vector &y1, const Vector &y2, double _offset);
|
|---|
| 21 | Plane(const Vector &_normalVector, double _offset=0);
|
|---|
| 22 | Plane(const Vector &_normalVector, const Vector &_offsetVector);
|
|---|
| 23 | virtual ~Plane();
|
|---|
| 24 |
|
|---|
| 25 | // Accessor Functions
|
|---|
| 26 | Vector getNormal();
|
|---|
| 27 | double getOffset();
|
|---|
| 28 |
|
|---|
| 29 | // some calculations
|
|---|
| 30 | Vector GetIntersection(const Vector &Origin, const Vector &LineVector);
|
|---|
| 31 |
|
|---|
| 32 | private:
|
|---|
| 33 | vec_ptr normalVector;
|
|---|
| 34 | double offset;
|
|---|
| 35 | };
|
|---|
| 36 |
|
|---|
| 37 | #endif /* PLANE_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.