libjbt

taper.h

This is the verbatim text of the taper.h include file.

#ifndef jbt_taper_h
#define jbt_taper_h

#include "warp.h"


class jbt_taper : public jbt_warp
{
public:
    

    jbt_taper( jFlt x = 1, jFlt z = 1, jbt_blobtree* obj = 0 );
    

    jbt_taper( jFlt x, jFlt z, jFlt ymin, jFlt ymax, jbt_blobtree* obj = 0 );

    jbt_blobtree::Type type() const { return jbt_blobtree::jbtTaper; }

    void precompute( const jVec3& );
    jVec3 warp( const jVec3& ) const;
    jVec3 unwarp( const jVec3& ) const;

private:

    jFlt tx, tz, wkx, wkz, ymin, ymax;
};

#endif  

JSP / libjbt v0.1 mtigges@cpsc.ucalgary.ca