/usr/include/mapnik/text/rotation.hpp is in libmapnik-dev 3.0.9+ds-1.
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 | #ifndef MAPNIK_ROTATION_HPP
#define MAPNIK_ROTATION_HPP
#include <cmath>
namespace mapnik
{
struct rotation
{
rotation() : sin(0), cos(1.) { }
rotation(double sin_, double cos_) : sin(sin_), cos(cos_) { }
rotation(double angle) : sin(std::sin(angle)), cos(std::cos(angle)) {}
void reset() { sin = 0.; cos = 1.;}
void init(double angle) { sin = std::sin(angle); cos = std::cos(angle); }
double sin;
double cos;
rotation operator~() const { return rotation(sin, -cos); }
rotation operator!() const { return rotation(-sin, cos); }
};
}
#endif // ROTATION_HPP
|