Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Struct HexCellMetrics

    Metrics of a cell in the hex terrain. Contains information about the cell's biome, position, coordinate, byte height (from heightmap), height in meters, chunk index, chunk coord, etc.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Fwt.HexTerrains.Data
    Assembly: fwt.hexterrains.dll
    Syntax
    public struct HexCellMetrics

    Fields

    Biome

    Biome value (byte) of the cell

    Declaration
    public byte Biome
    Field Value
    Type Description
    byte

    CellCoord_Global

    Coordinate of cell on terrain

    Declaration
    public int2 CellCoord_Global
    Field Value
    Type Description
    int2

    CellCoord_Local

    Coordinate local to chunk

    Declaration
    public int2 CellCoord_Local
    Field Value
    Type Description
    int2

    CellHeight_Points

    Height of the cell in bytes (from heightmap)

    Declaration
    public byte CellHeight_Points
    Field Value
    Type Description
    byte

    CellHeight_Units

    Height of the cell in meters

    Declaration
    public float CellHeight_Units
    Field Value
    Type Description
    float

    CellIndex

    Declaration
    public int CellIndex
    Field Value
    Type Description
    int

    CellTransform_Global

    Cell center matrix with origin at terrain 0:0:0 (not chunk)

    Declaration
    public Matrix4x4 CellTransform_Global
    Field Value
    Type Description
    Matrix4x4

    CellTransform_Local

    Cell center matrix with origin at chunk 0:0:0 (not terrain)

    Declaration
    public Matrix4x4 CellTransform_Local
    Field Value
    Type Description
    Matrix4x4

    CenterPoint_Global

    Position2D (no height) of center point of the cell relative to the terrain origin

    Declaration
    public float2 CenterPoint_Global
    Field Value
    Type Description
    float2

    CenterPoint_Local

    Position2D (no height) of center point of the cell relative to the chunk origin

    Declaration
    public float2 CenterPoint_Local
    Field Value
    Type Description
    float2

    ChunkCoord

    Coordinate of the chunk of this cell in the chunks grid

    Declaration
    public int2 ChunkCoord
    Field Value
    Type Description
    int2

    ChunkIndex

    Value of the chunk this cell belongs to

    Declaration
    public int ChunkIndex
    Field Value
    Type Description
    int

    Properties

    CenterPosition_Global

    Declaration
    public float3 CenterPosition_Global { get; }
    Property Value
    Type Description
    float3

    CenterPosition_Local

    Declaration
    public float3 CenterPosition_Local { get; }
    Property Value
    Type Description
    float3

    Extension Methods

    HashExtensions.GetHashCode_ValueType<TValue>(TValue, int)
    HashExtensions.GetHashCode_ValueType<TValue>(TValue, int)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    In this article
    Back to top Generated by DocFX