This file is indexed.

/usr/include/compiz/animation/point3d.h is in compiz-dev 1:0.9.12.2+16.04.20160415-0ubuntu1.

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
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
#ifndef ANIMATION_POINT_H
#define ANIMATION_POINT_H
#include "animation.h"

class Point
{
public:
     Point () : mX (0), mY (0) {}
     Point (float x, float y) : mX (x), mY (y) {}
     
     inline float x () const { return mX; }
     inline float y () const { return mY; }
     
     inline void setX (float x) { mX = x; }
     inline void setY (float y) { mY = y; }
     
     void set (float x, float y) { mX = x; mY = y; }
     
     inline void add (const Point &p) { mX += p.x (); mY += p.y (); }
     
     Point &operator= (const Point &p);
     bool operator== (const Point &p) const;
     bool operator!= (const Point &p) const;
     
private:
     float mX, mY;
};

typedef Point Vector;

class Point3d
{
    public:
	Point3d () : mX (0), mY (0), mZ (0) {}
	Point3d (float x, float y, float z) : mX (x), mY (y), mZ (z) {}

	inline float x () const { return mX; }
	inline float y () const { return mY; }
	inline float z () const { return mZ; }

	inline void setX (float x) { mX = x; }
	inline void setY (float y) { mY = y; }
	inline void setZ (float z) { mZ = z; }

	inline void set (float x, float y, float z) { mX = x; mY = y; mZ = z; }

	inline void add (const Point3d &p)
	{ mX += p.x (); mY += p.y (); mZ += p.z (); }
	inline void add (float x, float y, float z)
	{ mX += x; mY += y; mZ += z; }

	Point3d &operator= (const Point3d &p);
	bool operator== (const Point3d &p) const;
	bool operator!= (const Point3d &p) const;

    private:
	float mX, mY, mZ;
};

typedef Point3d Vector3d;

/* XXX: change this to CompRect */
typedef struct
{
    float x1, x2, y1, y2;
} Boxf;

inline Point &
Point::operator= (const Point &p)
{
    mX = p.x (); mY = p.y ();
    return *this;
}

inline bool
Point::operator== (const Point &p) const
{
    return (mX == p.x () && mY == p.y ());
}

inline bool
Point::operator!= (const Point &p) const
{
    return !(*this == p);
}

inline Point3d &
Point3d::operator= (const Point3d &p)
{
    mX = p.x (); mY = p.y (); mZ = p.z ();
    return *this;
}

inline bool
Point3d::operator== (const Point3d &p) const
{
    return (mX == p.x () && mY == p.y () && mZ == p.z ());
}

inline bool
Point3d::operator!= (const Point3d &p) const
{
    return !(*this == p);
}
#endif