OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Properties | List of all members
OpenSim.Region.OptionalModules.Scripting.Minimodule.IHeightmap Interface Reference
Inheritance diagram for OpenSim.Region.OptionalModules.Scripting.Minimodule.IHeightmap:
Inheritance graph
[legend]

Properties

double this[int x, int y] [get, set]
 Returns [or sets] the heightmap value at specified coordinates. More...
 
int Length [get]
 The maximum length of the region (Y axis), exclusive. (eg Height = 256, max Y = 255). Minimum is always 0 inclusive. More...
 
int Width [get]
 The maximum width of the region (X axis), exclusive. (eg Width = 256, max X = 255). Minimum is always 0 inclusive. More...
 

Detailed Description

Definition at line 34 of file IHeightmap.cs.

Property Documentation

int OpenSim.Region.OptionalModules.Scripting.Minimodule.IHeightmap.Length
get

The maximum length of the region (Y axis), exclusive. (eg Height = 256, max Y = 255). Minimum is always 0 inclusive.

Host.Console.Info("The terrain length of this region is " + World.Heightmap.Length);

Definition at line 59 of file IHeightmap.cs.

double OpenSim.Region.OptionalModules.Scripting.Minimodule.IHeightmap.this[int x, int y]
getset

Returns [or sets] the heightmap value at specified coordinates.

Parameters
xX Coordinate
yY Coordinate
Returns
A value in meters representing height. Can be negative. Value correlates with Z parameter in world coordinates

double heightVal = World.Heightmap[128,128]; World.Heightmap[128,128] *= 5.0; World.Heightmap[128,128] = 25;

Definition at line 48 of file IHeightmap.cs.

int OpenSim.Region.OptionalModules.Scripting.Minimodule.IHeightmap.Width
get

The maximum width of the region (X axis), exclusive. (eg Width = 256, max X = 255). Minimum is always 0 inclusive.

Host.Console.Info("The terrain width of this region is " + World.Heightmap.Width);

Definition at line 67 of file IHeightmap.cs.


The documentation for this interface was generated from the following file: