This file is indexed.

/usr/include/cal3d/matrix.h is in libcal3d12-dev 0.11.0-7+b1.

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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
//****************************************************************************//
// matrix.h                                                                   //
// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger                       //
//****************************************************************************//
// This library is free software; you can redistribute it and/or modify it    //
// under the terms of the GNU Lesser General Public License as published by   //
// the Free Software Foundation; either version 2.1 of the License, or (at    //
// your option) any later version.                                            //
//****************************************************************************//

#ifndef CAL_MATRIX_H
#define CAL_MATRIX_H

//****************************************************************************//
// Includes                                                                   //
//****************************************************************************//

#include "cal3d/global.h"

//****************************************************************************//
// Forward declarations                                                       //
//****************************************************************************//

class CalQuaternion;

//****************************************************************************//
// Class declaration                                                          //
//****************************************************************************//

/*****************************************************************************/
/** The matrix class.
*****************************************************************************/

class CAL3D_API CalMatrix
{
	// member variables
public:
	float dxdx,dydx,dzdx;
	float dxdy,dydy,dzdy;
	float dxdz,dydz,dzdz;
	
	// constructors/destructor
public:
	inline CalMatrix()	: dxdx(0.0), dydx(0.0), dzdx(0.0),
		dxdy(0.0), dydy(0.0), dzdy(0.0),
		dxdz(0.0), dydz(0.0), dzdz(0.0)
	{
	}
	
	CalMatrix(const CalQuaternion &q);
	
	inline CalMatrix(float weight, const CalMatrix &m)
	{
		dxdx = m.dxdx*weight;
		dxdy = m.dxdy*weight;
		dxdz = m.dxdz*weight;
		dydx = m.dydx*weight;
		dydy = m.dydy*weight;
		dydz = m.dydz*weight;
		dzdx = m.dzdx*weight;
		dzdy = m.dzdy*weight;
		dzdz = m.dzdz*weight;
	}
	
	
	inline ~CalMatrix() {};
	
	// member functions
public:
	void operator=(const CalQuaternion& q);
	
	inline void operator=(const CalMatrix& m)
	{
		dxdx=m.dxdx; dxdy=m.dxdy; dxdz=m.dxdz;
		dydx=m.dydx; dydy=m.dydy; dydz=m.dydz;
		dzdx=m.dzdx; dzdy=m.dzdy; dzdz=m.dzdz;
	}
	inline void operator *= (const CalMatrix &m)
	{
		float ndxdx=m.dxdx*dxdx+m.dxdy*dydx+m.dxdz*dzdx;
		float ndydx=m.dydx*dxdx+m.dydy*dydx+m.dydz*dzdx;
		float ndzdx=m.dzdx*dxdx+m.dzdy*dydx+m.dzdz*dzdx;
		
		float ndxdy=m.dxdx*dxdy+m.dxdy*dydy+m.dxdz*dzdy;
		float ndydy=m.dydx*dxdy+m.dydy*dydy+m.dydz*dzdy;
		float ndzdy=m.dzdx*dxdy+m.dzdy*dydy+m.dzdz*dzdy;
		
		float ndxdz=m.dxdx*dxdz+m.dxdy*dydz+m.dxdz*dzdz;
		float ndydz=m.dydx*dxdz+m.dydy*dydz+m.dydz*dzdz;
		float ndzdz=m.dzdx*dxdz+m.dzdy*dydz+m.dzdz*dzdz;
		
		dxdx=ndxdx;
		dydx=ndydx;
		dzdx=ndzdx;
		dxdy=ndxdy;
		dydy=ndydy;
		dzdy=ndzdy;
		dxdz=ndxdz;
		dydz=ndydz;
		dzdz=ndzdz;
	}
	
	inline void operator *= (float factor)
	{
		dxdx *= factor;
		dydx *= factor;
		dzdx *= factor;
		dxdy *= factor;
		dydy *= factor;
		dzdy *= factor;
		dxdz *= factor;
		dydz *= factor;
		dzdz *= factor;
	}
	inline void blend(float factor, const CalMatrix& m)
	{
		dxdx += m.dxdx*factor;
		dydx += m.dydx*factor;
		dzdx += m.dzdx*factor;
		dxdy += m.dxdy*factor;
		dydy += m.dydy*factor;
		dzdy += m.dzdy*factor;
		dxdz += m.dxdz*factor;
		dydz += m.dydz*factor;
		dzdz += m.dzdz*factor;
	}
	
	inline float det()
	{
		return dxdx * (dydy*dzdz-dydz*dzdy)
            -dxdy* ( dydx*dzdz-dzdx*dydz)
			+dxdz* (dydx*dzdy-dzdx*dydy);
	}
	
};


#endif

//****************************************************************************//