载入中...
搜索中...
未找到
Pointy-top hex metrics, directions and vertex helpers. 更多...
#include <algorithm>#include <cmath>#include <cstdint>类 | |
| struct | eve::hexmap::HexVec3 |
| Minimal 3-component float vector used by the hex mesh builders. 更多... | |
| struct | eve::hexmap::HexVec4 |
| Four-component float vector, matching the reference four-channel noise sample. 更多... | |
| class | eve::hexmap::HexMetrics |
| Hexagon metrics shared by the map model and every mesh builder. 更多... | |
| struct | eve::hexmap::EdgeVertices |
| Five sample points along one hex edge, from v1 to v5. 更多... | |
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::hexmap |
枚举 | |
| enum class | eve::hexmap::HexDirection : std::int32_t { eve::hexmap::NE = 0 , eve::hexmap::E = 1 , eve::hexmap::SE = 2 , eve::hexmap::SW = 3 , eve::hexmap::W = 4 , eve::hexmap::NW = 5 } |
| Hex facing directions, counter-clockwise from north-east. 更多... | |
| enum class | eve::hexmap::HexEdgeType : std::int32_t { eve::hexmap::Flat = 0 , eve::hexmap::Slope = 1 , eve::hexmap::Cliff = 2 } |
| Relationship between two neighbouring cells of different elevation. 更多... | |
函数 | |
| constexpr HexVec3 | eve::hexmap::operator+ (HexVec3 a, HexVec3 b) noexcept |
| Operator +. | |
| constexpr HexVec3 | eve::hexmap::operator- (HexVec3 a, HexVec3 b) noexcept |
| Operator -. | |
| constexpr HexVec3 | eve::hexmap::operator* (HexVec3 a, float s) noexcept |
| Operator *. | |
| constexpr HexVec3 | eve::hexmap::operator* (float s, HexVec3 a) noexcept |
| Operator *. | |
| constexpr HexVec3 & | eve::hexmap::operator+= (HexVec3 &a, HexVec3 b) noexcept |
| Operator +=. | |
| constexpr HexVec3 | eve::hexmap::lerp (HexVec3 a, HexVec3 b, float t) noexcept |
| Linear interpolation between two positions. | |
| constexpr HexVec3 | eve::hexmap::weightsLerp (HexVec3 a, HexVec3 b, float t) noexcept |
| Blends the three terrain-layer weights of a hex vertex. | |
| constexpr HexDirection | eve::hexmap::opposite (HexDirection d) noexcept |
The direction opposite to d. | |
| constexpr HexDirection | eve::hexmap::previous (HexDirection d) noexcept |
| The next direction counter-clockwise (NE wraps to NW). | |
| constexpr HexDirection | eve::hexmap::next (HexDirection d) noexcept |
| The next direction clockwise (NW wraps to NE). | |
| constexpr HexDirection | eve::hexmap::previous2 (HexDirection d) noexcept |
| Two steps counter-clockwise. | |
| constexpr HexDirection | eve::hexmap::next2 (HexDirection d) noexcept |
| Two steps clockwise. | |
| constexpr HexEdgeType | eve::hexmap::edgeType (int elevation1, int elevation2) noexcept |
| The relationship between two elevations (single-step changes are slopes). | |
变量 | |
| constexpr std::int32_t | eve::hexmap::kHexDirectionCount = 6 |
| Number of hex edges / facing directions. | |
详细描述
Pointy-top hex metrics, directions and vertex helpers.
在文件 HexMetrics.h 中定义.