Changeset 4611 in orxonox.OLD for orxonox/trunk/src/lib/math
- Timestamp:
- Jun 12, 2005, 11:52:45 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/math
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/vector.cc
r4585 r4611 652 652 } 653 653 654 655 /** 656 \brief create a plane from anchor point and normal 657 \param norm: normal vector 658 \param p: anchor point 659 */ 660 Plane::Plane (Vector norm, sVec3D g) 661 { 662 Vector p(g[0], g[1], g[2]); 663 n = norm; 664 k = -(n.x*p.x+n.y*p.y+n.z*p.z); 665 } 666 667 654 668 /** 655 669 \brief returns the intersection point between the plane and a line -
orxonox/trunk/src/lib/math/vector.h
r4609 r4611 227 227 Plane (Vector a, Vector b, Vector c); 228 228 Plane (Vector norm, Vector p); 229 Plane (Vector norm, sVec3D p); 229 230 Plane (Vector n, float k) : n(n), k(k) {} //!< assignment constructor 230 231 Plane () : n(Vector(1,1,1)), k(0) {}
Note: See TracChangeset
for help on using the changeset viewer.