Commit 2e58b886 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Fixed cgt::Vector::minElem and cgt::Vector::maxElem.

parent b7b7573d
......@@ -819,7 +819,7 @@ template<class T> inline T minElem(const CGT_BASE_TYPE<T>& v) { \
for (size_t i = 1; i < v.size; ++i) \
if(v.elem[i] > v.elem[minElem]) \
minElem = i; \
return minElem; \
return v.elem[minElem]; \
}
#define CGT_VEC_MAX_ELEM \
......@@ -828,7 +828,7 @@ template<class T> inline T maxElem(const CGT_BASE_TYPE<T>& v) { \
for (size_t i = 1; i < v.size; ++i) \
if(v.elem[i] > v.elem[maxElem]) \
maxElem = i; \
return maxElem; \
return v.elem[maxElem]; \
}
#define CGT_VEC_CLAMP \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment