MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / intersect2

Function intersect2

src/python/PyImath/PyImathLine.cpp:315–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314template <class T>
315static object
316intersect2(Line3<T> &line, const Vec3<T> &v0, const Vec3<T> &v1, const Vec3<T> &v2)
317{
318 MATH_EXC_ON;
319 Vec3<T> pt, bar;
320 bool front;
321
322 if(IMATH_NAMESPACE::intersect(line, v0, v1, v2, pt, bar, front))
323 {
324 tuple t = make_tuple(pt, bar, front);
325 return t;
326 }
327 else
328 {
329 return object();
330 }
331}
332
333template <class T>
334static tuple

Callers

nothing calls this directly

Calls 1

intersectFunction · 0.85

Tested by

no test coverage detected