Table of Contents

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 int

The size along the x-axis.

y int

The size along the y-axis.

stretchH float

A factor by which the terrain is horizontally stretched.

stretchV float

A 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

float

StretchV

A factor by which the ITerrain is vertically stretched.

public float StretchV { readonly get; set; }

Property Value

float

X

The size of the ITerrain along the X-axis.

public int X { readonly get; set; }

Property Value

int

Y

The size of the ITerrain along the Y-axis.

public int Y { readonly get; set; }

Property Value

int

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

Size

implicit operator TerrainSize(Size)

Convert Size into TerrainSize.

public static implicit operator TerrainSize(Size size)

Parameters

size Size

Returns

TerrainSize

See Also