/usr/include/libwildmagic/Wm5Curve3.h is in libwildmagic-dev 5.13-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | // Geometric Tools, LLC
// Copyright (c) 1998-2014
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.1 (2010/10/01)
#ifndef WM5CURVE3_H
#define WM5CURVE3_H
#include "Wm5MathematicsLIB.h"
#include "Wm5Vector3.h"
namespace Wm5
{
template <typename Real>
class WM5_MATHEMATICS_ITEM Curve3
{
public:
// Abstract base class.
Curve3 (Real tmin, Real tmax);
virtual ~Curve3 ();
// Interval on which curve parameter is defined. If you are interested
// in only a subinterval of the actual domain of the curve, you may set
// that subinterval with SetTimeInterval. This function requires that
// tmin < tmax.
Real GetMinTime () const;
Real GetMaxTime () const;
void SetTimeInterval (Real tmin, Real tmax);
// Position and derivatives.
virtual Vector3<Real> GetPosition (Real t) const = 0;
virtual Vector3<Real> GetFirstDerivative (Real t) const = 0;
virtual Vector3<Real> GetSecondDerivative (Real t) const = 0;
virtual Vector3<Real> GetThirdDerivative (Real t) const = 0;
// Differential geometric quantities.
Real GetSpeed (Real t) const;
virtual Real GetLength (Real t0, Real t1) const = 0;
Real GetTotalLength () const;
Vector3<Real> GetTangent (Real t) const;
Vector3<Real> GetNormal (Real t) const;
Vector3<Real> GetBinormal (Real t) const;
void GetFrame (Real t, Vector3<Real>& position, Vector3<Real>& tangent,
Vector3<Real>& normal, Vector3<Real>& binormal) const;
Real GetCurvature (Real t) const;
Real GetTorsion (Real t) const;
// Inverse mapping of s = Length(t) given by t = Length^{-1}(s).
virtual Real GetTime (Real length, int iterations = 32,
Real tolerance = (Real)1e-06) const = 0;
// Subdivision.
void SubdivideByTime (int numPoints, Vector3<Real>*& points) const;
void SubdivideByLength (int numPoints, Vector3<Real>*& points) const;
protected:
// Curve parameter is t where tmin <= t <= tmax.
Real mTMin, mTMax;
};
typedef Curve3<float> Curve3f;
typedef Curve3<double> Curve3d;
}
#endif
|