/[ff3d]/ff3d/geometry/Cylinder.hpp
ViewVC logotype

Diff of /ff3d/geometry/Cylinder.hpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by delpinux, Fri Feb 28 14:56:55 2003 UTC revision 1.3 by delpinux, Fri Aug 8 08:39:56 2003 UTC
# Line 90  public: Line 90  public:
90  //! Returns true if the point \a p is inside the Cylinder.  //! Returns true if the point \a p is inside the Cylinder.
91  inline const bool Cylinder::inShape(const TinyVector<3>& v) const  inline const bool Cylinder::inShape(const TinyVector<3>& v) const
92  {  {
93    TinyVector<3> x(v[0] - __center.X(),    TinyVector<3> x(v[0] - __center.x(),
94                    v[1] - __center.Y(),                    v[1] - __center.y(),
95                    v[2] - __center.Z());                    v[2] - __center.z());
96    
97    real_t ux = __u * x;    real_t ux = __u * x;
98    TinyVector<3> normal (x - (ux * __u));    TinyVector<3> normal (x - (ux * __u));

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26