20 lines
No EOL
399 B
C
20 lines
No EOL
399 B
C
// Copyright 2020 Phyronnaz
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
struct FVoxelOctreeId
|
|
{
|
|
FIntVector Position;
|
|
uint8 Height;
|
|
|
|
FORCEINLINE bool operator==(const FVoxelOctreeId& Other) const
|
|
{
|
|
return Position == Other.Position && Height == Other.Height;
|
|
}
|
|
FORCEINLINE bool operator!=(const FVoxelOctreeId& Other) const
|
|
{
|
|
return Position != Other.Position || Height != Other.Height;
|
|
}
|
|
}; |