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

Function Vec3Array_max

src/python/PyImath/PyImathVec3ArrayImpl.h:84–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83template <class T>
84static IMATH_NAMESPACE::Vec3<T>
85Vec3Array_max(const FixedArray<IMATH_NAMESPACE::Vec3<T> > &a)
86{
87 Vec3<T> tmp(Vec3<T>(0));
88 size_t len = a.len();
89 if (len > 0)
90 tmp = a[0];
91 for (size_t i=1; i < len; ++i)
92 {
93 if (a[i].x > tmp.x)
94 tmp.x = a[i].x;
95 if (a[i].y > tmp.y)
96 tmp.y = a[i].y;
97 if (a[i].z > tmp.z)
98 tmp.z = a[i].z;
99 }
100 return tmp;
101}
102
103template <class T>
104static IMATH_NAMESPACE::Box<IMATH_NAMESPACE::Vec3<T> >

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected