#ifndef jbt_twist_h #define jbt_twist_h #include "warp.h" class jbt_twist : public jbt_warp { public: jbt_twist( jFlt theta = 180, jbt_blobtree* obj = 0 ); jbt_twist( jFlt theta, jFlt ymin, jFlt ymax, jbt_blobtree* obj=0 ); jbt_blobtree::Type type() const { return jbt_blobtree::jbtTwist; } void precompute( const jVec3& ); jVec3 warp( const jVec3& ) const; jVec3 unwarp( const jVec3& ) const; private: jFlt ymin, ymax; jFlt theta, wk, Ctheta, Stheta; }; #endif