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

Function closestPoints2

src/python/PyImath/PyImathLine.cpp:251–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249
250template <class T>
251static tuple
252closestPoints2(Line3<T> &line1, const Line3<T> &line2)
253{
254 MATH_EXC_ON;
255 Vec3<T> p0, p1;
256 IMATH_NAMESPACE::closestPoints(line1, line2, p0, p1);
257 tuple p0Tuple = make_tuple(p0.x,p0.y,p0.z);
258 tuple p1Tuple = make_tuple(p1.x,p1.y,p1.z);
259
260#if !defined(_MSC_VER) || (_MSC_VER <= 1200)
261 tuple t = make_tuple(p0Tuple, p1Tuple);
262 return t;
263#else
264 list v3;
265 v3.append(p0Tuple);
266 v3.append(p1Tuple);
267 return tuple(v3);
268#endif
269}
270
271template <class T>
272static Vec3<T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected