MCPcopy Create free account
hub / github.com/KLayout/klayout / bbox_from_raw_bbox

Method bbox_from_raw_bbox

src/db/db/dbArray.h:2009–2020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2007 */
2008 template <class BoxConv>
2009 box_type bbox_from_raw_bbox (const box_type &rb, const BoxConv &bc) const
2010 {
2011 if (mp_base) {
2012 if (mp_base->is_complex ()) {
2013 return rb * (box_type (mp_base->complex_trans (simple_trans_type (m_trans.fp_trans ())) * bc (m_obj)));
2014 } else {
2015 return rb * (m_trans.fp_trans () * bc (m_obj));
2016 }
2017 } else {
2018 return rb * (m_trans.fp_trans () * bc (m_obj));
2019 }
2020 }
2021
2022 /**
2023 * @brief Gets the bounding box from the iterator's current quad

Callers 2

dbArrayTests.ccFile · 0.80
update_bboxMethod · 0.80

Calls 3

is_complexMethod · 0.45
complex_transMethod · 0.45
fp_transMethod · 0.45

Tested by

no test coverage detected