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

Function Vec3Array_min

src/python/PyImath/PyImathVec3ArrayImpl.h:64–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template <class T>
64static IMATH_NAMESPACE::Vec3<T>
65Vec3Array_min(const FixedArray<IMATH_NAMESPACE::Vec3<T> > &a)
66{
67 Vec3<T> tmp(Vec3<T>(0));
68 size_t len = a.len();
69 if (len > 0)
70 tmp = a[0];
71 for (size_t i=1; i < len; ++i)
72 {
73 if (a[i].x < tmp.x)
74 tmp.x = a[i].x;
75 if (a[i].y < tmp.y)
76 tmp.y = a[i].y;
77 if (a[i].z < tmp.z)
78 tmp.z = a[i].z;
79 }
80 return tmp;
81}
82
83template <class T>
84static IMATH_NAMESPACE::Vec3<T>

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected