Last change
on this file since 3467 was
3467,
checked in by ldelgass, 11 years ago
|
Begin process of renaming/merging vrmath library
|
File size:
849 bytes
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /** \class vrBPlane vrBPlane.h <vrmath/vrBPlane.h> |
---|
3 | * \author Insoo Woo(iwoo@purdue.edu), Sung-Ye Kim (inside@purdue.edu) |
---|
4 | * \author PhD research assistants in PURPL at Purdue University |
---|
5 | * \version 1.0 |
---|
6 | * \date Nov. 2006-2007 |
---|
7 | */ |
---|
8 | #ifndef VRBPLANE_H |
---|
9 | #define VRBPLANE_H |
---|
10 | |
---|
11 | #include <vrmath/Linmath.h> |
---|
12 | #include <vrmath/Vector3f.h> |
---|
13 | #include <vrmath/LineSegment.h> |
---|
14 | |
---|
15 | class vrBPlane |
---|
16 | { |
---|
17 | public: |
---|
18 | void makePts(const vrVector3f& pt1, const vrVector3f& pt2, const vrVector3f& pt3); |
---|
19 | |
---|
20 | void makeNormalPt(const vrVector3f& norm, const vrVector3f& pos); |
---|
21 | |
---|
22 | bool intersect(const vrLineSegment &seg, float &d) const; |
---|
23 | |
---|
24 | float distance(const vrVector3f& point) const; |
---|
25 | |
---|
26 | vrVector3f crossPoint(const vrVector3f& point) const; |
---|
27 | |
---|
28 | vrVector3f normal; |
---|
29 | vrVector3f point; |
---|
30 | }; |
---|
31 | |
---|
32 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.