| 1 |
/* File: pencil_relationship_2d_layouter.inl; Copyright and License: see below */ |
| 2 |
|
| 3 |
#include "u8/u8_log.h" |
| 4 |
#include <assert.h> |
| 5 |
|
| 6 |
static inline u8_error_t pencil_relationship_2d_layouter_private_find_space_for_h_line ( pencil_relationship_2d_layouter_t *this_, |
| 7 |
const geometry_rectangle_t *search_rect, |
| 8 |
double min_gap, |
| 9 |
double *io_ordinate ) |
| 10 |
{ |
| 11 |
return pencil_relationship_2d_layouter_private_find_space_for_line ( this_, |
| 12 |
search_rect, |
| 13 |
true, /* horizontal_line */ |
| 14 |
min_gap, |
| 15 |
io_ordinate |
| 16 |
); |
| 17 |
} |
| 18 |
|
| 19 |
static inline u8_error_t pencil_relationship_2d_layouter_private_find_space_for_v_line ( pencil_relationship_2d_layouter_t *this_, |
| 20 |
const geometry_rectangle_t *search_rect, |
| 21 |
double min_gap, |
| 22 |
double *io_abscissa ) |
| 23 |
{ |
| 24 |
return pencil_relationship_2d_layouter_private_find_space_for_line ( this_, |
| 25 |
search_rect, |
| 26 |
false, /* horizontal_line */ |
| 27 |
min_gap, |
| 28 |
io_abscissa |
| 29 |
); |
| 30 |
} |
| 31 |
|
| 32 |
|
| 33 |
/* |
| 34 |
Copyright 2022-2026 Andreas Warnke |
| 35 |
|
| 36 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 37 |
you may not use this file except in compliance with the License. |
| 38 |
You may obtain a copy of the License at |
| 39 |
|
| 40 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 41 |
|
| 42 |
Unless required by applicable law or agreed to in writing, software |
| 43 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 44 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 45 |
See the License for the specific language governing permissions and |
| 46 |
limitations under the License. |
| 47 |
*/ |