Home
last modified time | relevance | path

Searched refs:axis (Results 1 – 25 of 255) sorted by relevance

1234567891011

/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/
H A Dda223_cust.c647 struct sensor_axis axis; local
671axis.x = (pdata->orientation[0])*tmp_x + (pdata->orientation[1])*tmp_y + (pdata->orientation[2])*t…
672axis.y = (pdata->orientation[3])*tmp_x + (pdata->orientation[4])*tmp_y + (pdata->orientation[5])*t…
674axis.z = (pdata->orientation[6])*tmp_x + (pdata->orientation[7])*tmp_y + (bzstk?1:(pdata->orientat…
676axis.z = (pdata->orientation[6])*tmp_x + (pdata->orientation[7])*tmp_y + (pdata->orientation[8])*t…
680 if (axis.x == last_axis.x && axis.y == last_axis.y && axis.z == last_axis.z)
681 axis.x += 1;
683 if ((sensor->axis.x == axis.x) && (sensor->axis.y == axis.y) && (sensor->axis.z == axis.z)) {
686 axis.x += 1;
687 axis.y += 1;
[all …]
H A Dmma7660.c125 static int gsensor_report_value(struct i2c_client *client, struct sensor_axis *axis) in gsensor_report_value() argument
132 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
133 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
134 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
148 struct sensor_axis axis; in sensor_report_value() local
172 axis.x = (pdata->orientation[0]) * x + (pdata->orientation[1]) * y + (pdata->orientation[2]) * z; in sensor_report_value()
173 axis.y = (pdata->orientation[3]) * x + (pdata->orientation[4]) * y + (pdata->orientation[5]) * z; in sensor_report_value()
174 axis.z = (pdata->orientation[6]) * x + (pdata->orientation[7]) * y + (pdata->orientation[8]) * z; in sensor_report_value()
180 if ((sensor->axis.x == axis.x) && (sensor->axis.y == axis.y) && (sensor->axis.z == axis.z)) { in sensor_report_value()
183 axis.x += 1; in sensor_report_value()
[all …]
H A Dsc7a20.c1508 static int gsensor_report_value(struct i2c_client *client, struct sensor_axis *axis) in gsensor_report_value() argument
1517 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value()
1518 input_report_abs(sensor->input_dev, ABS_Y,axis->x); in gsensor_report_value()
1519 input_report_abs(sensor->input_dev, ABS_Z,-axis->z); in gsensor_report_value()
1521 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value()
1522 input_report_abs(sensor->input_dev, ABS_Y,axis->x); in gsensor_report_value()
1523 input_report_abs(sensor->input_dev, ABS_Z,-axis->z); in gsensor_report_value()
1525 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value()
1526 input_report_abs(sensor->input_dev, ABS_Y,-axis->y); in gsensor_report_value()
1527 input_report_abs(sensor->input_dev, ABS_Z,-axis->z); in gsensor_report_value()
[all …]
H A Dsc7660.c1425 static int gsensor_report_value(struct i2c_client *client, struct sensor_axis *axis) in gsensor_report_value() argument
1436 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value()
1437 input_report_abs(sensor->input_dev, ABS_Y,axis->x); in gsensor_report_value()
1438 input_report_abs(sensor->input_dev, ABS_Z,-axis->z); in gsensor_report_value()
1440 input_report_abs(sensor->input_dev, ABS_X,axis->y); in gsensor_report_value()
1441 input_report_abs(sensor->input_dev, ABS_Y,axis->x); in gsensor_report_value()
1442 input_report_abs(sensor->input_dev, ABS_Z,-axis->z); in gsensor_report_value()
1444 input_report_abs(sensor->input_dev, ABS_X,axis->x); in gsensor_report_value()
1445 input_report_abs(sensor->input_dev, ABS_Y,-axis->y); in gsensor_report_value()
1446 input_report_abs(sensor->input_dev, ABS_Z,-axis->z); in gsensor_report_value()
[all …]
H A Dkxtj9.c209 static int gsensor_report_value(struct i2c_client *client, struct sensor_axis *axis) in gsensor_report_value() argument
216 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
217 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
218 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
233 struct sensor_axis axis; in sensor_report_value() local
258 axis.x = (pdata->orientation[0])*x + (pdata->orientation[1])*y + (pdata->orientation[2])*z; in sensor_report_value()
259 axis.y = (pdata->orientation[3])*x + (pdata->orientation[4])*y + (pdata->orientation[5])*z; in sensor_report_value()
260 axis.z = (pdata->orientation[6])*x + (pdata->orientation[7])*y + (pdata->orientation[8])*z; in sensor_report_value()
262 DBG( "%s: axis = %d %d %d \n", __func__, axis.x, axis.y, axis.z); in sensor_report_value()
264 gsensor_report_value(client, &axis); in sensor_report_value()
[all …]
H A Dmxc622x.c161 static int gsensor_report_value(struct i2c_client *client, struct sensor_axis *axis) in gsensor_report_value() argument
168 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
169 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
170 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
185 struct sensor_axis axis; in sensor_report_value() local
211 axis.x = (pdata->orientation[0])*x + (pdata->orientation[1])*y + (pdata->orientation[2])*z; in sensor_report_value()
212 axis.y = (pdata->orientation[3])*x + (pdata->orientation[4])*y + (pdata->orientation[5])*z; in sensor_report_value()
213 axis.z = (pdata->orientation[6])*x + (pdata->orientation[7])*y + (pdata->orientation[8])*z; in sensor_report_value()
215 gsensor_report_value(client, &axis); in sensor_report_value()
218 sensor->axis = axis; in sensor_report_value()
H A Dmxc6655xa.c134 struct sensor_axis *axis) in gsensor_report_value() argument
140 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
141 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
142 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
150 struct sensor_axis axis; in sensor_report_value() local
180 axis.x = (pdata->orientation[0]) * x + (pdata->orientation[1]) * y + in sensor_report_value()
182 axis.y = (pdata->orientation[3]) * x + (pdata->orientation[4]) * y + in sensor_report_value()
184 axis.z = (pdata->orientation[6]) * x + (pdata->orientation[7]) * y + in sensor_report_value()
187 gsensor_report_value(client, &axis); in sensor_report_value()
190 sensor->axis = axis; in sensor_report_value()
H A Dlsm330_acc.c156 struct sensor_axis *axis) in gsensor_report_value() argument
162 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
163 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
164 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
181 struct sensor_axis axis; in sensor_report_value() local
204 axis.x = (pdata->orientation[0]) * x + in sensor_report_value()
207 axis.y = (pdata->orientation[3]) * x + in sensor_report_value()
210 axis.z = (pdata->orientation[6]) * x + in sensor_report_value()
214 gsensor_report_value(client, &axis); in sensor_report_value()
216 sensor->axis = axis; in sensor_report_value()
H A Dlis3dh.c188 static int gsensor_report_value(struct i2c_client *client, struct sensor_axis *axis) in gsensor_report_value() argument
195 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
196 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
197 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
211 struct sensor_axis axis; in sensor_report_value() local
235 axis.x = (pdata->orientation[0]) * x + (pdata->orientation[1]) * y + (pdata->orientation[2]) * z; in sensor_report_value()
236 axis.y = (pdata->orientation[3]) * x + (pdata->orientation[4]) * y + (pdata->orientation[5]) * z; in sensor_report_value()
237 axis.z = (pdata->orientation[6]) * x + (pdata->orientation[7]) * y + (pdata->orientation[8]) * z; in sensor_report_value()
239 gsensor_report_value(client, &axis); in sensor_report_value()
242 sensor->axis = axis; in sensor_report_value()
H A Dicm2060x_acc.c143 struct sensor_axis *axis) in gsensor_report_value() argument
150 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
151 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
152 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
166 struct sensor_axis axis; in sensor_report_value() local
189 axis.x = (pdata->orientation[0]) * x + (pdata->orientation[1]) * y + in sensor_report_value()
191 axis.y = (pdata->orientation[3]) * x + (pdata->orientation[4]) * y + in sensor_report_value()
193 axis.z = (pdata->orientation[6]) * x + (pdata->orientation[7]) * y + in sensor_report_value()
196 gsensor_report_value(client, &axis); in sensor_report_value()
199 sensor->axis = axis; in sensor_report_value()
/OK3568_Linux_fs/kernel/drivers/input/sensors/angle/
H A Dangle_lis3dh.c205 static int angle_report_value(struct i2c_client *client, struct sensor_axis *axis) in angle_report_value() argument
211 input_report_abs(sensor->input_dev, ABS_X, axis->x); in angle_report_value()
212 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in angle_report_value()
213 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in angle_report_value()
215 DBG("Gsensor x==%d y==%d z==%d\n",axis->x,axis->y,axis->z); in angle_report_value()
228 struct sensor_axis axis; in sensor_report_value() local
261 axis.x = (pdata->orientation[0])*x + (pdata->orientation[1])*y + (pdata->orientation[2])*z; in sensor_report_value()
262 axis.y = (pdata->orientation[3])*x + (pdata->orientation[4])*y + (pdata->orientation[5])*z; in sensor_report_value()
263 axis.z = (pdata->orientation[6])*x + (pdata->orientation[7])*y + (pdata->orientation[8])*z; in sensor_report_value()
265 DBG( "%s: axis = %d %d %d \n", __func__, axis.x, axis.y, axis.z); in sensor_report_value()
[all …]
H A Dangle_kxtik.c271 static int angle_report_value(struct i2c_client *client, struct sensor_axis *axis) in angle_report_value() argument
277 input_report_abs(sensor->input_dev, ABS_X, axis->x); in angle_report_value()
278 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in angle_report_value()
279 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in angle_report_value()
281 DBG("Gsensor x==%d y==%d z==%d\n",axis->x,axis->y,axis->z); in angle_report_value()
294 struct sensor_axis axis; in sensor_report_value() local
319 axis.x = (pdata->orientation[0])*x + (pdata->orientation[1])*y + (pdata->orientation[2])*z; in sensor_report_value()
320 axis.y = (pdata->orientation[3])*x + (pdata->orientation[4])*y + (pdata->orientation[5])*z; in sensor_report_value()
321 axis.z = (pdata->orientation[6])*x + (pdata->orientation[7])*y + (pdata->orientation[8])*z; in sensor_report_value()
323 DBG( "%s: axis = %d %d %d \n", __func__, axis.x, axis.y, axis.z); in sensor_report_value()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da228e/
H A Dda228e.c162 struct sensor_axis *axis) in gsensor_report_value() argument
166 if ((abs(sensor->axis.x - axis->x) > GSENSOR_MIN) || in gsensor_report_value()
167 (abs(sensor->axis.y - axis->y) > GSENSOR_MIN) || in gsensor_report_value()
168 (abs(sensor->axis.z - axis->z) > GSENSOR_MIN)) { in gsensor_report_value()
169 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
170 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
171 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
180 struct sensor_axis axis; in sensor_report_value() local
218 axis.x = (pdata->orientation[0]) * tmp_x + (pdata->orientation[1]) * tmp_y + in sensor_report_value()
220 axis.y = (pdata->orientation[3]) * tmp_x + (pdata->orientation[4]) * tmp_y + in sensor_report_value()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da215s/
H A Dda215s.c161 struct sensor_axis *axis) in gsensor_report_value() argument
165 if ((abs(sensor->axis.x - axis->x) > GSENSOR_MIN) || in gsensor_report_value()
166 (abs(sensor->axis.y - axis->y) > GSENSOR_MIN) || in gsensor_report_value()
167 (abs(sensor->axis.z - axis->z) > GSENSOR_MIN)) { in gsensor_report_value()
168 input_report_abs(sensor->input_dev, ABS_X, axis->x); in gsensor_report_value()
169 input_report_abs(sensor->input_dev, ABS_Y, axis->y); in gsensor_report_value()
170 input_report_abs(sensor->input_dev, ABS_Z, axis->z); in gsensor_report_value()
179 struct sensor_axis axis; in sensor_report_value() local
218 axis.x = (pdata->orientation[0]) * tmp_x + (pdata->orientation[1]) * tmp_y + in sensor_report_value()
220 axis.y = (pdata->orientation[3]) * tmp_x + (pdata->orientation[4]) * tmp_y + in sensor_report_value()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/gyro/
H A Dl3g20d.c119 static int gyro_report_value(struct i2c_client *client, struct sensor_axis *axis) in gyro_report_value() argument
126 input_report_rel(sensor->input_dev, ABS_RX, axis->x); in gyro_report_value()
127 input_report_rel(sensor->input_dev, ABS_RY, axis->y); in gyro_report_value()
128 input_report_rel(sensor->input_dev, ABS_RZ, axis->z); in gyro_report_value()
142 struct sensor_axis axis; in sensor_report_value() local
177 axis.x = (pdata->orientation[0])*x + (pdata->orientation[1])*y + (pdata->orientation[2])*z; in sensor_report_value()
178 axis.y = (pdata->orientation[3])*x + (pdata->orientation[4])*y + (pdata->orientation[5])*z; in sensor_report_value()
179 axis.z = (pdata->orientation[6])*x + (pdata->orientation[7])*y + (pdata->orientation[8])*z; in sensor_report_value()
183 axis.x = x; in sensor_report_value()
184 axis.y = y; in sensor_report_value()
[all …]
H A Dl3g4200d.c119 static int gyro_report_value(struct i2c_client *client, struct sensor_axis *axis) in gyro_report_value() argument
126 input_report_rel(sensor->input_dev, ABS_RX, axis->x); in gyro_report_value()
127 input_report_rel(sensor->input_dev, ABS_RY, axis->y); in gyro_report_value()
128 input_report_rel(sensor->input_dev, ABS_RZ, axis->z); in gyro_report_value()
142 struct sensor_axis axis; in sensor_report_value() local
177 axis.x = (pdata->orientation[0])*x + (pdata->orientation[1])*y + (pdata->orientation[2])*z; in sensor_report_value()
178 axis.y = (pdata->orientation[3])*x + (pdata->orientation[4])*y + (pdata->orientation[5])*z; in sensor_report_value()
179 axis.z = (pdata->orientation[6])*x + (pdata->orientation[7])*y + (pdata->orientation[8])*z; in sensor_report_value()
183 axis.x = x; in sensor_report_value()
184 axis.y = y; in sensor_report_value()
[all …]
H A Dmpu6500_gyro.c91 static int gyro_report_value(struct i2c_client *client, struct sensor_axis *axis) in gyro_report_value() argument
98 input_report_rel(sensor->input_dev, ABS_RX, axis->x); in gyro_report_value()
99 input_report_rel(sensor->input_dev, ABS_RY, axis->y); in gyro_report_value()
100 input_report_rel(sensor->input_dev, ABS_RZ, axis->z); in gyro_report_value()
114 struct sensor_axis axis; in sensor_report_value() local
136 axis.x = (pdata->orientation[0]) * x + (pdata->orientation[1]) * y + (pdata->orientation[2]) * z; in sensor_report_value()
137 axis.y = (pdata->orientation[3]) * x + (pdata->orientation[4]) * y + (pdata->orientation[5]) * z; in sensor_report_value()
138 axis.z = (pdata->orientation[6]) * x + (pdata->orientation[7]) * y + (pdata->orientation[8]) * z; in sensor_report_value()
140 gyro_report_value(client, &axis); in sensor_report_value()
143 sensor->axis = axis; in sensor_report_value()
H A Dmpu6880_gyro.c91 static int gyro_report_value(struct i2c_client *client, struct sensor_axis *axis) in gyro_report_value() argument
98 input_report_rel(sensor->input_dev, ABS_RX, axis->x); in gyro_report_value()
99 input_report_rel(sensor->input_dev, ABS_RY, axis->y); in gyro_report_value()
100 input_report_rel(sensor->input_dev, ABS_RZ, axis->z); in gyro_report_value()
114 struct sensor_axis axis; in sensor_report_value() local
136 axis.x = (pdata->orientation[0]) * x + (pdata->orientation[1]) * y + (pdata->orientation[2]) * z; in sensor_report_value()
137 axis.y = (pdata->orientation[3]) * x + (pdata->orientation[4]) * y + (pdata->orientation[5]) * z; in sensor_report_value()
138 axis.z = (pdata->orientation[6]) * x + (pdata->orientation[7]) * y + (pdata->orientation[8]) * z; in sensor_report_value()
140 gyro_report_value(client, &axis); in sensor_report_value()
143 sensor->axis = axis; in sensor_report_value()
H A Dicm2060x_gyro.c88 struct sensor_axis *axis) in gyro_report_value() argument
95 input_report_rel(sensor->input_dev, ABS_RX, axis->x); in gyro_report_value()
96 input_report_rel(sensor->input_dev, ABS_RY, axis->y); in gyro_report_value()
97 input_report_rel(sensor->input_dev, ABS_RZ, axis->z); in gyro_report_value()
111 struct sensor_axis axis; in sensor_report_value() local
133 axis.x = (pdata->orientation[0]) * x + (pdata->orientation[1]) * y + in sensor_report_value()
135 axis.y = (pdata->orientation[3]) * x + (pdata->orientation[4]) * y + in sensor_report_value()
137 axis.z = (pdata->orientation[6]) * x + (pdata->orientation[7]) * y + in sensor_report_value()
140 gyro_report_value(client, &axis); in sensor_report_value()
143 sensor->axis = axis; in sensor_report_value()
H A Diam20680_gyro.c84 static int gyro_report_value(struct i2c_client *client, struct sensor_axis *axis) in gyro_report_value() argument
91 input_report_rel(sensor->input_dev, ABS_RX, axis->x); in gyro_report_value()
92 input_report_rel(sensor->input_dev, ABS_RY, axis->y); in gyro_report_value()
93 input_report_rel(sensor->input_dev, ABS_RZ, axis->z); in gyro_report_value()
107 struct sensor_axis axis; in sensor_report_value() local
129 axis.x = (pdata->orientation[0]) * x + (pdata->orientation[1]) * y + (pdata->orientation[2]) * z; in sensor_report_value()
130 axis.y = (pdata->orientation[3]) * x + (pdata->orientation[4]) * y + (pdata->orientation[5]) * z; in sensor_report_value()
131 axis.z = (pdata->orientation[6]) * x + (pdata->orientation[7]) * y + (pdata->orientation[8]) * z; in sensor_report_value()
133 gyro_report_value(client, &axis); in sensor_report_value()
136 sensor->axis = axis; in sensor_report_value()
H A Dewtsa.c336 static int gyro_report_value(struct i2c_client *client, struct sensor_axis *axis) in gyro_report_value() argument
343 input_report_rel(sensor->input_dev, ABS_RX, axis->x); in gyro_report_value()
344 input_report_rel(sensor->input_dev, ABS_RY, axis->y); in gyro_report_value()
345 input_report_rel(sensor->input_dev, ABS_RZ, axis->z); in gyro_report_value()
359 struct sensor_axis axis; in sensor_report_value() local
388 axis.x = (pdata->orientation[0])*x + (pdata->orientation[1])*y + (pdata->orientation[2])*z; in sensor_report_value()
389 axis.y = (pdata->orientation[3])*x + (pdata->orientation[4])*y + (pdata->orientation[5])*z; in sensor_report_value()
390 axis.z = (pdata->orientation[6])*x + (pdata->orientation[7])*y + (pdata->orientation[8])*z; in sensor_report_value()
394 axis.x = x; in sensor_report_value()
395 axis.y = y; in sensor_report_value()
[all …]
H A Dlsm330_gyro.c142 struct sensor_axis *axis) in gyro_report_value() argument
148 input_report_rel(sensor->input_dev, ABS_RX, axis->x); in gyro_report_value()
149 input_report_rel(sensor->input_dev, ABS_RY, axis->y); in gyro_report_value()
150 input_report_rel(sensor->input_dev, ABS_RZ, axis->z); in gyro_report_value()
165 struct sensor_axis axis; in sensor_report_value() local
188 axis.x = (pdata->orientation[0]) * x + in sensor_report_value()
191 axis.y = (pdata->orientation[3]) * x + in sensor_report_value()
194 axis.z = (pdata->orientation[6]) * x + in sensor_report_value()
198 gyro_report_value(client, &axis); in sensor_report_value()
200 sensor->axis = axis; in sensor_report_value()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/
H A Drotary-encoder.txt7 - linux,axis: the input subsystem axis to map to this rotary encoder.
10 encoder. Only relevant for absolute axis. Defaults to 24 which is a
12 - rotary-encoder,relative-axis: register a relative axis rather than an
13 absolute one. Relative axis will only generate +1/-1 events on the input
16 greater than the specified steps or smaller than 0. For absolute axis only.
38 linux,axis = <0>; /* REL_X */
40 rotary-encoder,relative-axis;
46 linux,axis = <1>; /* ABS_Y */
/OK3568_Linux_fs/kernel/drivers/staging/axis-fifo/
H A Daxis-fifo.txt28 - xlnx,axis-tdest-width: AXI-Stream TDEST width (ignored by the driver)
29 - xlnx,axis-tid-width: AXI-Stream TID width (ignored by the driver)
30 - xlnx,axis-tuser-width: AXI-Stream TUSER width (ignored by the driver)
32 - xlnx,has-axis-tdest: Should be <0x0> (this feature isn't supported)
33 - xlnx,has-axis-tid: Should be <0x0> (this feature isn't supported)
34 - xlnx,has-axis-tkeep: Should be <0x0> (this feature isn't supported)
35 - xlnx,has-axis-tstrb: Should be <0x0> (this feature isn't supported)
36 - xlnx,has-axis-tuser: Should be <0x0> (this feature isn't supported)
70 xlnx,axis-tdest-width = <0x4>;
71 xlnx,axis-tid-width = <0x4>;
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/kdbush/0.1.1-1/include/
H A Dkdbush.hpp93 const std::uint8_t axis) { in range() argument
110 if (axis == 0 ? minX <= x : minY <= y) in range()
111 range(minX, minY, maxX, maxY, visitor, left, m - 1, (axis + 1) % 2); in range()
113 if (axis == 0 ? maxX >= x : maxY >= y) in range()
114 range(minX, minY, maxX, maxY, visitor, m + 1, right, (axis + 1) % 2); in range()
124 const std::uint8_t axis) { in within() argument
143 if (axis == 0 ? qx - r <= x : qy - r <= y) in within()
144 within(qx, qy, r, visitor, left, m - 1, (axis + 1) % 2); in within()
146 if (axis == 0 ? qx + r >= x : qy + r >= y) in within()
147 within(qx, qy, r, visitor, m + 1, right, (axis + 1) % 2); in within()
[all …]

1234567891011