mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
add more NotePreset properties
This commit is contained in:
parent
78d5ab02c2
commit
5b6ada6e5d
8 changed files with 74 additions and 18 deletions
|
|
@ -70,6 +70,11 @@ namespace util {
|
|||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
inline T sqr(T value) {
|
||||
return value * value;
|
||||
}
|
||||
|
||||
/// @return integer square of distance between two points
|
||||
/// @note glm::distance2 does not support integer vectors
|
||||
inline int distance2(const glm::ivec3& a, const glm::ivec3& b) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue