C# Class FortuneVoronoi.Tools.Math

显示文件 Open project: homoluden/fukami

Public Properties

Property Type Description
R System.Random

Public Methods

Method Description
CopyToArray ( ICollection L, Type T ) : Array
DAAdd ( double A, double B ) : double[]
DADist ( double A, double B ) : double
DAMean ( double A ) : double
DAMult ( double A, double r ) : double[]
DASkalar ( double A, double B ) : double
DAStdv ( double A, double M ) : double
DASum ( double A ) : double
Dist ( double x1, double y1, double x2, double y2 ) : double
GetAngle ( double x, double y ) : double
GetAngleTheta ( double x, double y ) : double
GetArray ( ) : object[]
GetIntArray ( ) : int[]
GetIntArrayConst ( int A, int n ) : int[]
GetIntArrayRange ( int A, int B ) : int[]
HSBtoRGB ( int hue, int saturation, int brightness, double OldCol ) : double[]
HighLevelSplit ( string S ) : string[]
IntersectionPoint ( Point P11, Point P12, Point P21, Point P22 ) : PointF
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 ( Point P0, Point P1, Point P2, bool PlusOneOnZeroDegrees ) : int
ccw ( double P0x, double P0y, double P1x, double P1y, double P2x, double P2y, bool PlusOneOnZeroDegrees ) : int
intersect ( Point P11, Point P12, Point P21, Point P22 ) : bool

Private Methods

Method Description
doubleToInt ( double f ) : int

Method Details

CopyToArray() public static method

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

DAAdd() public static method

public static DAAdd ( double A, double B ) : double[]
A double
B double
return double[]

DADist() public static method

public static DADist ( double A, double B ) : double
A double
B double
return double

DAMean() public static method

public static DAMean ( double A ) : double
A double
return double

DAMult() public static method

public static DAMult ( double A, double r ) : double[]
A double
r double
return double[]

DASkalar() public static method

public static DASkalar ( double A, double B ) : double
A double
B double
return double

DAStdv() public static method

public static DAStdv ( double A, double M ) : double
A double
M double
return double

DASum() public static method

public static DASum ( double A ) : double
A double
return double

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

GetAngle() public static method

public static GetAngle ( double x, double y ) : double
x double
y double
return double

GetAngleTheta() public static method

public static GetAngleTheta ( double x, double y ) : double
x double
y 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[]

HSBtoRGB() public static method

public static HSBtoRGB ( int hue, int saturation, int brightness, double OldCol ) : double[]
hue int
saturation int
brightness int
OldCol double
return double[]

HighLevelSplit() public static method

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

IntersectionPoint() public static method

public static IntersectionPoint ( Point P11, Point P12, Point P21, Point P22 ) : PointF
P11 Point
P12 Point
P21 Point
P22 Point
return FortuneVoronoi.Common.PointF

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 ( Point P0, Point P1, Point P2, bool PlusOneOnZeroDegrees ) : int
P0 Point
P1 Point
P2 Point
PlusOneOnZeroDegrees bool
return int

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

intersect() public static method

public static intersect ( Point P11, Point P12, Point P21, Point P22 ) : bool
P11 Point
P12 Point
P21 Point
P22 Point
return bool

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