Struct TerrainSize
- Namespace
- AlphaFramework.World.Terrains
- Assembly
- AlphaFramework.World.dll
Contains information about the size of a ITerrain.
public struct TerrainSize
- Inherited Members
- Extension Methods
Constructors
TerrainSize(int, int, float, float)
Creates a new ITerrain point information struct.
public TerrainSize(int x, int y, float stretchH = 1, float stretchV = 1)
Parameters
x
intThe size along the x-axis.
y
intThe size along the y-axis.
stretchH
floatA factor by which the terrain is horizontally stretched.
stretchV
floatA factor by which the terrain is vertically stretched.
Properties
StretchH
A factor by which the ITerrain is horizontally stretched.
public float StretchH { readonly get; set; }
Property Value
StretchV
A factor by which the ITerrain is vertically stretched.
public float StretchV { readonly get; set; }
Property Value
X
The size of the ITerrain along the X-axis.
public int X { readonly get; set; }
Property Value
Y
The size of the ITerrain along the Y-axis.
public int Y { readonly get; set; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
implicit operator Size(TerrainSize)
Convert TerrainSize into Size.
public static implicit operator Size(TerrainSize size)
Parameters
size
TerrainSize
Returns
implicit operator TerrainSize(Size)
Convert Size into TerrainSize.
public static implicit operator TerrainSize(Size size)
Parameters
size
Size