MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / inter

Method inter

Geometry/Geometry 3D.cpp:187–190  ·  view source on GitHub ↗

returns the intersection point of the line with plane p assuming plane and line are not parallel

Source from the content-addressed store, hash-verified

185 // returns the intersection point of the line with plane p
186 // assuming plane and line are not parallel
187 p3 inter(plane p) {
188 // assert((d | p.n) != 0); // no intersection if parallel
189 return o - d * p.side(o) / (d | p.n);
190 }
191};
192
193// smallest distance between two lines

Callers

nothing calls this directly

Calls 1

sideMethod · 0.45

Tested by

no test coverage detected