Real World Terrain  v4.1
InfinityCode.RealWorldTerrain.RealWorldTerrainVector2i Struct Reference

Integer version of Vector2 struct. More...

Public Member Functions

 RealWorldTerrainVector2i (int X=0, int Y=0)
 Constructor. More...
 

Public Attributes

int x
 The x value. More...
 
int y
 The y value. More...
 

Properties

static RealWorldTerrainVector2i one [get]
 Gets the RealWorldTerrainVector2i where x=1 and y=1. More...
 
int count [get]
 Returns the count items (X * Y). More...
 
int max [get]
 Returns the maximum value of x and y. More...
 

Detailed Description

Integer version of Vector2 struct.

Constructor & Destructor Documentation

◆ RealWorldTerrainVector2i()

InfinityCode.RealWorldTerrain.RealWorldTerrainVector2i.RealWorldTerrainVector2i ( int  X = 0,
int  Y = 0 
)

Constructor.

Parameters
XX value.
YY value.

Member Data Documentation

◆ x

int InfinityCode.RealWorldTerrain.RealWorldTerrainVector2i.x

The x value.

◆ y

int InfinityCode.RealWorldTerrain.RealWorldTerrainVector2i.y

The y value.

Property Documentation

◆ count

int InfinityCode.RealWorldTerrain.RealWorldTerrainVector2i.count
get

Returns the count items (X * Y).

◆ max

int InfinityCode.RealWorldTerrain.RealWorldTerrainVector2i.max
get

Returns the maximum value of x and y.

◆ one

RealWorldTerrainVector2i InfinityCode.RealWorldTerrain.RealWorldTerrainVector2i.one
staticget

Gets the RealWorldTerrainVector2i where x=1 and y=1.