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

Function reflectVectorTuple

src/python/PyImath/PyImathPlane.cpp:413–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411
412template <class T>
413static Vec3<T>
414reflectVectorTuple(Plane3<T> &plane, const tuple &t)
415{
416 MATH_EXC_ON;
417 Vec3<T> point;
418 if(t.attr("__len__")() == 3)
419 {
420 point.x = extract<T>(t[0]);
421 point.y = extract<T>(t[1]);
422 point.z = extract<T>(t[2]);
423
424 return plane.reflectVector(point);
425 }
426 else
427 throw std::domain_error ("Plane3 expects tuple of length 3");
428}
429
430template <class T>
431static bool

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected