C# Class LibProcgen, SteamWorkshopUploader

ファイルを表示 Open project: nihilocrat/SteamWorkshopUploader

Public Methods

Method Description
Bisect ( Vector3 pt1, Vector3 pt2, float variation ) : Vector3
GenerateCoast ( Vector3 corner1, Vector3 corner2, int iterations, float variation ) : Vector3[]
GenerateGrid ( int xsize, int ysize ) : Vector3[]
GenerateGrid ( int xsize, int ysize, float width, float height ) : Vector3[]
GetGridRegions ( Vector3 points, int xsize, int ysize ) : List
MakeCorners ( Vector3 origin, float islandRadius, float bordersize ) : Vector3[]
Midpoint ( Vector3 pt1, Vector3 pt2 ) : Vector3
PerturbPoints ( Vector3 points, float perturbation ) : Vector3[]

Method Details

Bisect() public static method

public static Bisect ( Vector3 pt1, Vector3 pt2, float variation ) : Vector3
pt1 Vector3
pt2 Vector3
variation float
return Vector3

GenerateCoast() public static method

public static GenerateCoast ( Vector3 corner1, Vector3 corner2, int iterations, float variation ) : Vector3[]
corner1 Vector3
corner2 Vector3
iterations int
variation float
return Vector3[]

GenerateGrid() public static method

public static GenerateGrid ( int xsize, int ysize ) : Vector3[]
xsize int
ysize int
return Vector3[]

GenerateGrid() public static method

public static GenerateGrid ( int xsize, int ysize, float width, float height ) : Vector3[]
xsize int
ysize int
width float
height float
return Vector3[]

GetGridRegions() public static method

public static GetGridRegions ( Vector3 points, int xsize, int ysize ) : List
points Vector3
xsize int
ysize int
return List

MakeCorners() public static method

public static MakeCorners ( Vector3 origin, float islandRadius, float bordersize ) : Vector3[]
origin Vector3
islandRadius float
bordersize float
return Vector3[]

Midpoint() public static method

public static Midpoint ( Vector3 pt1, Vector3 pt2 ) : Vector3
pt1 Vector3
pt2 Vector3
return Vector3

PerturbPoints() public static method

public static PerturbPoints ( Vector3 points, float perturbation ) : Vector3[]
points Vector3
perturbation float
return Vector3[]