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)); |