This file is indexed.

/usr/include/dx/geometry.h is in libdx4-dev 1:4.4.4-7.

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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/***********************************************************************/
/* 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_GEOMETRY_H_
#define _DXI_GEOMETRY_H_

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

/*
\section{Text}
Two varieties of text are supported by the system.  Geometric text is
implemented by generating a geometric surface like a paper cutout of
the text, which can then be arbitrarily rotated and scaled before
rendering.  Annotation text is text that is transformed so that it
always faces the screen.  This is supported by a combination of the
geometric text primitive described in this section and the screen
object described Chapter \ref{rendchap}.
*/

Object DXGetFont(char *name, float *ascent, float *descent);
/**
\index{DXGetFont}
Returns a group representing the named font.  The group has as many
members as there are characters in the font.  The character {\tt 'c'}
is represented by the {\tt 'c'}th member, and can be obtained by {\tt
DXGetEnumeratedMember(font, 'c', NULL)}.  The font has an overall height
of 1.  If {\tt ascent} is not null, the portion of the overall height
above the baseline is returned in {\tt *ascent}.  If {\tt descent} is
not null, the portion of the overall height below the baseline is
returned in {\tt *descent}.  The sum of the ascent and the descent is
the overall height 1.  Returns the font, or returns null and sets the
error code to indicate an error.
**/

Object DXGeometricText(char *s, Object font, float *width);
/**
\index{DXGeometricText}
Produces an object consisting of the given string.  The font is
specified by an object returned by {\tt DXGetFont()}.  The origin of the
string (left end of baseline) is placed at the origin of the $x,y$
plane with the baseline pointed along the positive $x$ axis.  If {\tt
width} is not null, the width of the string will be returned in {\tt
*width}.  The string will be bounded above by {\tt ascent} and below
by {\tt -descent} (as returned by {\tt DXGetFont()}), to the left by 0,
and to the right by {\tt width}.  Returns the text object, or returns
null and sets the error code to indicate an error.
**/

/*
\section{Clipping}

This section describes two higher-level routines that use the DXRender
module's clipping capability to clip an object to a plane and to a
box.  These routines do not actually perform any clipping, but rather
construct an object (clipped object) that describes to the renderer
what clipping is to be done at render time.
*/

Object DXClipPlane(Object o, Point p, Vector n);
/**
\index{DXClipPlane}
Clips object {\tt o} by the plane that contains {\tt p} and is
perpendicular to {\tt n}.  The object on the side of the plane pointed
to by {\tt n} is retained.  Returns an object describing to the
renderer how to do the clipping at render time, or returns null and
sets the error code to indicate an error.
**/

Object DXClipBox(Object o, Point p1, Point p2);
/**
\index{DXClipBox}
Clips object {\tt o} by the box defined by points {\tt p1} and {\tt
p2}.  Returns an object describing to the renderer how to do the
clipping at render time, or returns null and sets the error code to
indicate an error.
**/

/*
\section{Path operations}

The following operations produce a geometric object from a path.  In
addition to the functions described here, the DXRender module is capable
of directly rendering a path as a series of one-pixel lines.  A path
is a field with one-dimensional regular connections.  A path can be
created by, for example:

\begin{program}
    f = DXNewField();
    DXSetComponentValue(f, "positions", ...);
    DXSetConnections(f, "lines", DXMakeGridConnections(1, n));
    DXEndField(f);
\end{program}
where {\tt n} is the number of points.

Both of the operations described here use ``normals'' and ``tangent''
components if they are present; otherwise, they compute approximations
to the normals and tangents, as follows: the tangent is the first
derivative of the path, and the normal is perpendicular to the tangent
and in the plane formed by the tangent and the second derivative of
the path.  In each case, appropriate normals are associated with the
result for shading.
*/

Object DXRibbon(Object o, double width);
/**
\index{DXRibbon}
Produces a ribbon of the given width from a path or group of paths.
The ribbon is perpendicular to the normal and parallel to the tangent
at all points on the path, where the normals and tangents are provided
by ``normals'' and ``tangents'' components if present or approximated
from the path otherwise.  The normals (given or computed) are
translated to the generated vertices and associated with the ribbon
for shading.  Returns the ribbon, or returns null and sets the error
code to indicate an error.
**/

Object DXTube(Object o, double diameter, int n);
/**
\index{DXTube}
Produces a tube of the given diameter from a path or group of paths.
The cross section of the tube an {\tt n}-gon in a plane parallel to
the normal and perpendicular to the tangent at all points on the path,
where the normals and tangents are provided by ``normals'' and
``tangents'' components if present or approximated from the path
otherwise.  Normals to the tube are computed and associated with the
tube for shading.  Returns the tube, or returns null and sets the
error code to indicate an error.
**/

/*
\section{Glyphs}
Glyphs are small geometric objects such as vectors glyphs that can be
used to convey local information.\marginpar{More to come.}
*/

Object DXVectorGlyph(Point p, Vector v, double d, RGBColor c);
/**
\index{DXVectorGlyph}
Creates a vector glyph at {\tt p} with direction and length specified by
{\tt v}.  The diameter is specified by {\tt d} and the color is specified
by {\tt c}.  Returns an object or null to indicate an error.
**/

#endif /* _DXI_GEOMETRY_H_ */

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