From 109136c074fd4ce68f4c5615c05665a81fa7c7d9 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Thu, 28 Nov 2013 08:22:41 -0800 Subject: varregion: add ITerrainChannel.GetHeightAtXYZ() for eventual mesh terrain. Implementation of same in TerrainChannel.cs. Check for bounds in TerrainChannel[x,y] to prevent array access exceptions. --- OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs') diff --git a/OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs b/OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs index cc8a236..469bd31 100644 --- a/OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs +++ b/OpenSim/Region/Framework/Interfaces/ITerrainChannel.cs @@ -37,6 +37,8 @@ namespace OpenSim.Region.Framework.Interfaces double this[int x, int y] { get; set; } + float GetHeightAtXYZ(float x, float y, float z); + // Return the packaged terrain data for passing into lower levels of communication TerrainData GetTerrainData(); -- cgit v1.1