MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / get_min_interior

Function get_min_interior

src/geode/geometry/distance.cpp:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 void get_min_interior( const std::array< double, 2 >& p0,
143 double h0,
144 const std::array< double, 2 >& p1,
145 double h1,
146 std::array< double, 2 >& p )
147 {
148 const auto z = h0 / ( h0 - h1 );
149 const auto omz = 1 - z;
150 p[0] = omz * p0[0] + z * p1[0];
151 p[1] = omz * p0[1] + z * p1[1];
152 }
153
154 template < geode::index_t dimension >
155 std::tuple< double, geode::Point< dimension > >

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected