Universe.Framework.SceneInfo.TerrainChannel.GetNormalizedLandHeight C# (CSharp) Method

GetNormalizedLandHeight() public method

Gets the average height of land above the waterline at the specified point.
public GetNormalizedLandHeight ( int x, int y ) : float
x int The x coordinate.
y int The y coordinate.
return float
        public float GetNormalizedLandHeight (int x, int y)
        {
            var groundHeight = GetNormalizedGroundHeight (x, y);
            var waterHeight = m_scene.RegionInfo.RegionSettings.WaterHeight;
            var landHeight = groundHeight - waterHeight;

            // this is the height above/below the waterline
            return (float)landHeight;
        }