示例#1
0
 private int GetSlope(int x, int y, int xDiff, int yDiff)
 {
     return(Math.Abs(
                HeightMap.ClampedRead(x + xDiff, y + yDiff) -
                HeightMap.ClampedRead(x, y)));
 }