acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_collection_bounding_box.h
1
#pragma once
2
3
4
#include "lines.h"
5
6
7
//#include "bounding_box.h"
8
9
10
//
11
//
12
//template < prototype_number RECTANGLE_NUMBER, prototype_number LINES_NUMBER >
13
//inline bool expand_bounding_box(::rectangle_type < RECTANGLE_NUMBER > & rectangleBounding, const lines_base < LINES_NUMBER > & lines)
14
//{
15
//
16
// ::get_bounding_box(rectangleBounding, lines.data(), lines.size());
17
//
18
// return true;
19
//
20
//}
21
//
22
23
//inline bool get_bounding_box(::i32_rectangle & rectangleBounding, const lines & lines)
24
//{
25
//
26
// ::get_bounding_box(rectangleBounding, lines.data(), lines.size());
27
//
28
// return true;
29
//
30
//}
31
32
33
//template < prototype_number RECTANGLE_NUMBER, prototype_number POLYGON_NUMBER >
34
//inline bool expand_bounding_box(::rectangle_type < RECTANGLE_NUMBER > & rectangleBounding, const polygon_base < POLYGON_NUMBER > & polygon)
35
//{
36
//
37
// ::get_bounding_box(rectangleBounding, polygon.data(), polygon.size());
38
//
39
// return true;
40
//
41
//}
42
43
44
//inline bool get_bounding_box(::f64_rectangle & rectangleBounding, const i32_polygon & polygon)
45
//{
46
//
47
// ::get_bounding_box(rectangleBounding, polygon.data(), polygon.size());
48
//
49
// return true;
50
//
51
//}
52
//
53
//
54
//inline bool get_bounding_box(::i32_rectangle & rectangleBounding, const f64_polygon & polygon)
55
//{
56
//
57
// ::get_bounding_box(rectangleBounding, polygon.data(), polygon.size());
58
//
59
// return true;
60
//
61
//}
62
//
63
//
64
//inline bool get_bounding_box(::f64_rectangle & rectangleBounding, const f64_polygon & polygon)
65
//{
66
//
67
// ::get_bounding_box(rectangleBounding, polygon.data(), polygon.size());
68
//
69
// return true;
70
//
71
//}
72
73
74
//template < prototype_number NUMBER1, prototype_number NUMBER2 >
75
//void expand_bounding_box(::rectangle_type < NUMBER1 > & rectangle, const ::polygon_base < NUMBER2 > & polygon)
76
//{
77
//
78
// for (auto & point : polygon)
79
// {
80
//
81
// ::expand_bounding_box(rectangle, point);
82
//
83
// }
84
//
85
//}
86
87
//
88
//template < prototype_number NUMBER1, prototype_number NUMBER2 >
89
//void expand_bounding_box(::rectangle_type < NUMBER1 > & rectangle, const ::poly_polygon_base < NUMBER2 > & polypolygon)
90
//{
91
//
92
// for (auto & ppolygon : polypolygon)
93
// {
94
//
95
// ::expand_bounding_box(rectangle, *ppolygon);
96
//
97
// }
98
//
99
//}
100
//
101
102
prototype
geometry2d
_collection_bounding_box.h
Generated by
1.17.0