Table of Contents

Class MapUtil

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll
public class MapUtil
Inheritance
MapUtil
Inherited Members
Extension Methods

Methods

Index2d(int, int, int)

public static int Index2d(int x, int y, int sizex)

Parameters

x int
y int
sizex int

Returns

int

Index2dL(int, int, int)

public static long Index2dL(int x, int y, int sizex)

Parameters

x int
y int
sizex int

Returns

long

Index3d(int, int, int, int, int)

public static int Index3d(int x, int y, int z, int sizex, int sizez)

Parameters

x int
y int
z int
sizex int
sizez int

Returns

int

Index3d(int, int, int, long, long)

public static int Index3d(int x, int y, int z, long sizex, long sizez)

Parameters

x int
y int
z int
sizex long
sizez long

Returns

int

Index3dL(int, int, int, long, long)

public static long Index3dL(int x, int y, int z, long sizex, long sizez)

Parameters

x int
y int
z int
sizex long
sizez long

Returns

long

PosInt2d(long, long, Vec2i)

public static void PosInt2d(long index, long sizex, Vec2i ret)

Parameters

index long
sizex long
ret Vec2i

PosInt3d(int, long, long, Vec3i)

public static void PosInt3d(int index, long sizex, long sizez, Vec3i ret)

Parameters

index int
sizex long
sizez long
ret Vec3i

PosInt3d(long, long, long, Vec3i)

public static void PosInt3d(long index, long sizex, long sizez, Vec3i ret)

Parameters

index long
sizex long
sizez long
ret Vec3i

PosX(int, int, int)

public static int PosX(int index, int sizex, int sizey)

Parameters

index int
sizex int
sizey int

Returns

int

PosY(int, int, int)

public static int PosY(int index, int sizex, int sizey)

Parameters

index int
sizex int
sizey int

Returns

int

PosZ(int, int, int)

public static int PosZ(int index, int sizex, int sizey)

Parameters

index int
sizex int
sizey int

Returns

int