/usr/include/libwildmagic/Wm5ApprGreatCircleFit3.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 | // 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 WM5APPRGREATCIRCLEFIT3_H
#define WM5APPRGREATCIRCLEFIT3_H
#include "Wm5MathematicsLIB.h"
#include "Wm5Vector3.h"
namespace Wm5
{
// Least-squares fit of a great circle to unit-length vectors (x,y,z) by
// using distance measurements orthogonal (and measured along great circles)
// to the proposed great circle. The inputs akPoint[] are unit length. The
// returned value is unit length, call it N. The fitted great circle is
// defined by Dot(N,X) = 0, where X is a unit-length vector on the great
// circle.
template <typename Real> WM5_MATHEMATICS_ITEM
Vector3<Real> GreatCircleFit3 (int numPoints, const Vector3<Real>* points);
// In addition to the least-squares fit of a great circle, the input vectors
// are projected onto that circle. The sector of smallest angle (possibly
// obtuse) that contains the points is computed. The endpoints of the arc
// of the sector are returned. The returned endpoints A0 and A1 are
// perpendicular to the returned normal N. Moreover, when you view the
// arc by looking at the plane of the great circle with a view direction
// of -N, the arc is traversed counterclockwise starting at A0 and ending
// at A1.
template <typename Real>
class WM5_MATHEMATICS_ITEM GreatArcFit3
{
public:
GreatArcFit3 (int numPoints, const Vector3<Real>* points,
Vector3<Real>& normal, Vector3<Real>& arcEnd0,
Vector3<Real>& arcEnd1);
private:
class Item
{
public:
Real U, V, Angle;
// Support for sorting.
bool operator< (const Item& item) const;
};
};
}
#endif
|