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

Function rdiv

src/python/PyImath/PyImathShear.cpp:337–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335
336template <class T>
337static Shear6<T>
338rdiv(Shear6<T> &v, T a)
339{
340 MATH_EXC_ON;
341 Shear6<T> w;
342
343 if(v != Shear6<T>()){
344 w[0] = a/v[0];
345 w[1] = a/v[1];
346 w[2] = a/v[2];
347 w[3] = a/v[3];
348 w[4] = a/v[4];
349 w[5] = a/v[5];
350 }
351 else
352 throw std::domain_error ("Division by Zero");
353
354 return w;
355}
356
357template <class T>
358static Shear6<T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected