worked on 3D walls
This commit is contained in:
@@ -85,6 +85,7 @@ inline void swap(Point2& p1, Point2& p2) {
|
||||
}
|
||||
|
||||
namespace std {
|
||||
|
||||
template <> struct hash<Point2> {
|
||||
std::size_t operator()(const Point2& p) const {
|
||||
uint32_t x = *((uint32_t*)&(p.x));
|
||||
@@ -92,6 +93,7 @@ namespace std {
|
||||
return std::hash<uint32_t>()(x^y);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // POINT2_H
|
||||
|
||||
Reference in New Issue
Block a user