diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2021-02-05 18:24:03 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2021-02-05 18:24:03 +0300 |
commit | e8a5744cdab0df49fe9e86170b776c3708c20b00 (patch) | |
tree | 0e12a08afac4b610ec4f864bf32b2d52ddf2d963 /extern/mantaflow/helper/util/vectorbase.h | |
parent | 66923031e6f21fcd2e67f2928659e6d0261d3c2a (diff) | |
parent | a5637756491ca1b9baa544ad86f74627f6333d04 (diff) |
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'extern/mantaflow/helper/util/vectorbase.h')
-rw-r--r-- | extern/mantaflow/helper/util/vectorbase.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extern/mantaflow/helper/util/vectorbase.h b/extern/mantaflow/helper/util/vectorbase.h index 9b4d9c83f0b..3c7c6e6bc01 100644 --- a/extern/mantaflow/helper/util/vectorbase.h +++ b/extern/mantaflow/helper/util/vectorbase.h @@ -664,6 +664,11 @@ template<class T> inline Vec3i toVec3iRound(T v) return Vec3i((int)round(v[0]), (int)round(v[1]), (int)round(v[2])); } +template<class T> inline Vec3i toVec3iFloor(T v) +{ + return Vec3i((int)floor(v[0]), (int)floor(v[1]), (int)floor(v[2])); +} + //! convert to int Vector if values are close enough to an int template<class T> inline Vec3i toVec3iChecked(T v) { |