Merge branch 'master' into NDK
Former-commit-id: 7f2646da9f2e2c29157e645afbcfcf974f0e0709
This commit is contained in:
@@ -56,9 +56,9 @@ NzBox<T>::NzBox(const NzBox<U>& box)
|
||||
template<typename T>
|
||||
bool NzBox<T>::Contains(T X, T Y, T Z) const
|
||||
{
|
||||
return X >= x && X < x+width &&
|
||||
Y >= y && Y < y+height &&
|
||||
Z >= z && Z < z+depth;
|
||||
return X >= x && X <= x+width &&
|
||||
Y >= y && Y <= y+height &&
|
||||
Z >= z && Z <= z+depth;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
||||
@@ -50,8 +50,8 @@ NzRect<T>::NzRect(const NzRect<U>& rect)
|
||||
template<typename T>
|
||||
bool NzRect<T>::Contains(T X, T Y) const
|
||||
{
|
||||
return X >= x && X < x+width &&
|
||||
Y >= y && Y < y+height;
|
||||
return X >= x && X <= x+width &&
|
||||
Y >= y && Y <= y+height;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user