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

Function reflectPointTuple

src/python/PyImath/PyImathPlane.cpp:361–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359
360template <class T>
361static Vec3<T>
362reflectPointTuple(Plane3<T> &plane, const tuple &t)
363{
364 MATH_EXC_ON;
365 Vec3<T> point;
366 if(t.attr("__len__")() == 3)
367 {
368 point.x = extract<T>(t[0]);
369 point.y = extract<T>(t[1]);
370 point.z = extract<T>(t[2]);
371
372 return plane.reflectPoint(point);
373 }
374 else
375 throw std::domain_error ("Plane3 expects tuple of length 3");
376}
377
378template <class T>
379static T

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected