C# Class Voronoi.Algorithms.FortuneHelpers.MathTools

显示文件 Open project: TobieD/City-Generator Class Usage Examples

Public Properties

Property Type Description
R System.Random

Public Methods

Method Description
CopyToArray ( ICollection L, Type T ) : Array
Dist ( double x1, double y1, double x2, double y2 ) : double
GetArray ( ) : object[]
GetIntArray ( ) : int[]
GetIntArrayConst ( int A, int n ) : int[]
GetIntArrayRange ( int A, int B ) : int[]
HighLevelSplit ( string S ) : string[]
Shuffle ( IList A ) : IList
Shuffle ( IList S, Random R, bool Copy ) : IList
Shuffle ( IList A, bool Copy ) : IList
ShuffleIList ( IList A ) : void
ShuffleIList ( IList A, Random R ) : void
ccw ( double P0x, double P0y, double P1x, double P1y, double P2x, double P2y, bool PlusOneOnZeroDegrees ) : int

Method Details

CopyToArray() public static method

public static CopyToArray ( ICollection L, Type T ) : Array
L ICollection
T System.Type
return System.Array

Dist() public static method

public static Dist ( double x1, double y1, double x2, double y2 ) : double
x1 double
y1 double
x2 double
y2 double
return double

GetArray() public static method

public static GetArray ( ) : object[]
return object[]

GetIntArray() public static method

public static GetIntArray ( ) : int[]
return int[]

GetIntArrayConst() public static method

public static GetIntArrayConst ( int A, int n ) : int[]
A int
n int
return int[]

GetIntArrayRange() public static method

public static GetIntArrayRange ( int A, int B ) : int[]
A int
B int
return int[]

HighLevelSplit() public static method

public static HighLevelSplit ( string S ) : string[]
S string
return string[]

Shuffle() public static method

public static Shuffle ( IList A ) : IList
A IList
return IList

Shuffle() public static method

public static Shuffle ( IList S, Random R, bool Copy ) : IList
S IList
R System.Random
Copy bool
return IList

Shuffle() public static method

public static Shuffle ( IList A, bool Copy ) : IList
A IList
Copy bool
return IList

ShuffleIList() public static method

public static ShuffleIList ( IList A ) : void
A IList
return void

ShuffleIList() public static method

public static ShuffleIList ( IList A, Random R ) : void
A IList
R System.Random
return void

ccw() public static method

public static ccw ( double P0x, double P0y, double P1x, double P1y, double P2x, double P2y, bool PlusOneOnZeroDegrees ) : int
P0x double
P0y double
P1x double
P1y double
P2x double
P2y double
PlusOneOnZeroDegrees bool
return int

Property Details

R public_oe static_oe property

One static Random instance for use in the entire application
public static Random,System R
return System.Random