载入中...
搜索中...
未找到
eve::hexmap::HexTerrainWeights结构体 参考
Terrain-layer weights of a vertex; the three entries sum to 1. 更多...
#include <HexMapMesh.h>
静态 Public 成员函数 | |
| static HexTerrainWeights | primary () noexcept |
| Weights of the first cell alone. | |
| static HexTerrainWeights | blend (float t) noexcept |
Weights of two cells, t towards the second. | |
| static HexTerrainWeights | blend3 (float t2, float t3) noexcept |
Weights of three cells, t2/t3 towards the second and third. | |
| static HexTerrainWeights | lerp (const HexTerrainWeights &a, const HexTerrainWeights &b, float t) noexcept |
| Interpolates two weight sets. | |
Public 属性 | |
| float | a = 1.f |
| float | b = 0.f |
| float | c = 0.f |
详细描述
Terrain-layer weights of a vertex; the three entries sum to 1.
在文件 HexMapMesh.h 第 39 行定义.
成员函数说明
◆ blend()
|
inlinestaticnoexcept |
◆ blend3()
|
inlinestaticnoexcept |
Weights of three cells, t2/t3 towards the second and third.
在文件 HexMapMesh.h 第 49 行定义.
◆ lerp()
|
inlinestaticnoexcept |
◆ primary()
|
inlinestaticnoexcept |
Weights of the first cell alone.
在文件 HexMapMesh.h 第 45 行定义.
类成员变量说明
◆ a
| float eve::hexmap::HexTerrainWeights::a = 1.f |
在文件 HexMapMesh.h 第 40 行定义.
被这些函数引用 lerp().
◆ b
| float eve::hexmap::HexTerrainWeights::b = 0.f |
在文件 HexMapMesh.h 第 41 行定义.
被这些函数引用 lerp().
◆ c
| float eve::hexmap::HexTerrainWeights::c = 0.f |
在文件 HexMapMesh.h 第 42 行定义.
该结构体的文档由以下文件生成:
- src/modules/hexmap/HexMapMesh.h