windows-nt/Source/XPSP1/NT/multimedia/directx/dxg/ref8/hop/catrom.hpp
2020-09-26 16:20:57 +08:00

28 lines
733 B
C++

/*============================================================================
*
* Copyright (C) 1999-2000 Microsoft Corporation. All Rights Reserved.
*
* File: catrom.hpp
* Content: Declarations for Catmull-Rom splines
*
****************************************************************************/
#ifndef _CATROM_HPP
#define _CATROM_HPP
#include "bspline.hpp"
class RDCatRomSpline : public RDBSpline
{
public:
RDCatRomSpline() : RDBSpline(4, 4, 4, 4) {}
double TexCoordU(double u) const;
double TexCoordV(double v) const;
private:
virtual double Basis(unsigned i, unsigned n, double t) const;
virtual double BasisPrime(unsigned i, unsigned n, double t) const;
};
#endif // _CATROM_HPP