acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_aaa_bounding_box.h
1
// from region.h byy camilo on 2023-06-01 06:54 <3ThomasBorregaardSorensen!!
2
#pragma once
3
4
5
//template < prototype_rectangle RECTANGLE >
6
//inline void expand_bounding_box(RECTANGLE & rectangle, const ::f64_point & p)
7
//{
8
//
9
// rectangle.left = (decltype(rectangle.left))minimum(rectangle.left, p.x);
10
// rectangle.right = (decltype(rectangle.right))maximum(rectangle.right, p.x);
11
// rectangle.top = (decltype(rectangle.top))minimum(rectangle.top, p.y);
12
// rectangle.bottom = (decltype(rectangle.bottom))maximum(rectangle.bottom, p.y);
13
//
14
//}
15
16
template
< prototype_rectangle RECTANGLE >
17
inline
void
expand_bounding_box(RECTANGLE & rectangle, ::f64_point * p, ::collection::count c)
18
{
19
20
for
(::collection::index i = 0; i < c; i++)
21
{
22
23
expand_bounding_box(rectangle, *p);
24
25
p++;
26
27
}
28
29
}
30
31
32
prototype
geometry2d
_aaa2025
_aaa_bounding_box.h
Generated by
1.17.0