5template <
typename SHAPE, enum_shape ESHAPE,
typename HOLDEE >
6inline bool _shape < SHAPE, ESHAPE, HOLDEE >::get_bounding_box(::i32_rectangle & rectangle)
const
9 return ::get_bounding_box(rectangle, m_shape);
14template <
typename SHAPE, enum_shape ESHAPE,
typename HOLDEE >
15inline bool _shape < SHAPE, ESHAPE, HOLDEE >::get_bounding_box(::f64_rectangle & rectangle)
const
18 return ::get_bounding_box(rectangle, m_shape);
23template <
typename SHAPE, enum_shape ESHAPE,
typename HOLDEE >
24bool _shape < SHAPE, ESHAPE, HOLDEE >::expand_bounding_rect(::f64_rectangle & rectangle)
const
29 if (!this->get_bounding_box(r))
36 ::unite(rectangle, r);
43template <
typename SHAPE, enum_shape ESHAPE,
typename HOLDEE >
44bool _shape < SHAPE, ESHAPE, HOLDEE >::expand_bounding_rect(::i32_rectangle & rectangle)
const
49 if (!this->get_bounding_box(r))
56 ::unite(rectangle, r);
63template <
typename SHAPE, enum_shape ESHAPE,
typename HOLDEE >
64inline bool _shape < SHAPE, ESHAPE, HOLDEE >::contains(const ::i32_point & point)
const
67 return ::shape_contains(m_shape, point);
72template <
typename SHAPE, enum_shape ESHAPE,
typename HOLDEE >
73inline bool _shape < SHAPE, ESHAPE, HOLDEE >::contains(const ::f64_point & point)
const
76 return ::shape_contains(m_shape, point);
81template <
typename HOLDEE >
82template <
typename GEOMETRY >
83inline void shape_array < HOLDEE >::add_shape(
const GEOMETRY & geometry)
86 this->add(__create_shape(geometry, holdee < HOLDEE >()));