Changeset 4611 in orxonox.OLD for orxonox/trunk/src/lib/math/vector.cc
- Timestamp:
- Jun 12, 2005, 11:52:45 PM (19 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.