This file is indexed.

/usr/include/dx/camera.h is in libdx4-dev 1:4.4.4-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
/***********************************************************************/
/* Open Visualization Data Explorer                                    */
/* (C) Copyright IBM Corp. 1989,1999                                   */
/* ALL RIGHTS RESERVED                                                 */
/* This code licensed under the                                        */
/*    "IBM PUBLIC LICENSE - Open Visualization Data Explorer"          */
/***********************************************************************/


#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#ifndef _DXI_CAMERA_H_
#define _DXI_CAMERA_H_

/* TeX starts here. Do not remove this comment. */

/*
\section{Camera class}
\label{camsec}
A camera object stores parameters that relate a scene to an image of
the scene, including camera position and orientation, field of view,
type of projection, and resolution.  It specifies the transformation
from world coordinates to image coordinates.  See the description of
the {\tt DXTransform()} routine in Section \ref{transformsec}.
*/

Camera DXNewCamera(void);
/**
\index{DXNewCamera}
Creates a new camera.  The camera is initialized with an orthographic
projection looking along the $z$ axis toward the origin, with $x$ and
$y$ each ranging from $-1$ to $+1$ visible in a square viewport, with
the origin at the center of the viewport.  Returns the camera, or
returns null and sets the error code to indicate an error.
**/

Camera DXSetView(Camera c, Point from, Point to, Vector up);
/**
\index{DXSetView}
Specifies the camera position ({\tt from}), a point on the line of
sight of the camera ({\tt to}), and the camera orientation ({\tt up}).
Returns {\tt c}, or returns null and sets the error code to indicate
an error.
**/

Camera DXSetOrthographic(Camera c, double width, double aspect);
/**
\index{DXSetOrthographic}
Specifies an orthographic view.  The width of the viewport in world
coordinates is given by {\tt width}; the height of the view is {\tt
aspect} times the width.  Returns {\tt c}, or returns null and sets
the error code to indicate an error.
**/

Camera DXSetPerspective(Camera c, double width, double aspect);

Camera DXSetResolution(Camera c, int hres, double pix_aspect);
/**
\index{DXSetResolution}
Specifies the resolution of the camera.  The horizontal resolution in
pixels is given by {\tt hres}.  The pixels are assumed to be {\tt
pix\_aspect} times as tall as they are wide.  The vertical resolution
in pixels is {\tt hres*aspect/pix\_aspect}, where {\tt aspect} was
specified by {\tt DXSetPerspective()} or {\tt DXSetOrthographic()}.
Returns {\tt c}, or returns null and sets the error code to indicate
an error.
**/

Matrix DXGetCameraMatrix(Camera c);
Matrix DXGetCameraRotation(Camera c);
Matrix DXGetCameraMatrixWithFuzz(Camera c, float fuzz);
/**
\index{DXGetCameraMatrix}\index{DXGetCameraRotation}
The {\tt DXGetCameraMatrix()} returns the transformation matrix defined
by camera {\tt c}.  The {\tt DXGetCameraRotation()} routine returns only
the rotation part of the camera transformation.
**/

Camera DXGetView(Camera c, Point *from, Point *to, Vector *up);
/**
\index{DXGetView}
If {\tt from} is not null, this routine returns the camera from
position in {\tt *from}.  If {\tt to} is not null, it returns the
camera to position in {\tt *to}.  If {\tt up} is not null, it returns
the camera up vector in {\tt *up}.  Returns {\tt c}, or returns null
and sets the error code to indicate an error.
**/

Camera DXGetCameraResolution(Camera c, int *width, int *height);
/**
\index{DXGetCameraResolution}
Gets the resolution associated with camera {\tt c}.  Returns {\tt c},
or returns null and sets the error code to indicate an error.
**/

Camera DXGetOrthographic(Camera c, float *width, float *aspect);
/**
\index{DXGetOrthographic}
If {\tt width} is not null, returns the width of view in {\tt
*fov}.  If {\tt aspect} is not null, returns the aspect ratio in
{\tt *aspect}.  Returns {\tt c} if it is an orthographic camera,
otherwise returns null but does not set the error code.
**/

Camera DXGetPerspective(Camera c, float *fov, float *aspect);

Camera DXGetBackgroundColor(Camera camera, RGBColor *background);
Camera DXSetBackgroundColor(Camera camera, RGBColor background);

#endif /* _DXI_CAMERA_H_ */

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif