C# Class SuperImageEvolver.DNA

Inheritance: ICloneable
ファイルを表示 Open project: fragmer/SuperImageEvolver Class Usage Examples

Public Properties

Property Type Description
Divergence double
LastMutation MutationType
Shapes Shape[]

Public Methods

Method Description
Clone ( ) : object
DNA ( ) : System
DNA ( DNA other ) : System
DNA ( NBTag tag ) : System
DNA ( Stream stream, int shapes, int vertices ) : System
DivideShape ( Random rand, int shapeToDivide, int shapeToSacrifice ) : void
SerializeNBT ( string tagName ) : NBTag
ShiftShapeIndex ( int source, int dest ) : void
SwapShapes ( Random rand ) : void

Private Methods

Method Description
Lerp ( PointF p1, PointF p2, float amount ) : PointF
ShiftPoints ( Shape shape, int shift ) : Shape
Subdivide ( Random rand, Shape shape, int extraVertices ) : void

Method Details

Clone() public method

public Clone ( ) : object
return object

DNA() public method

public DNA ( ) : System
return System

DNA() public method

public DNA ( DNA other ) : System
other DNA
return System

DNA() public method

public DNA ( NBTag tag ) : System
tag NBTag
return System

DNA() public method

public DNA ( Stream stream, int shapes, int vertices ) : System
stream Stream
shapes int
vertices int
return System

DivideShape() public method

public DivideShape ( Random rand, int shapeToDivide, int shapeToSacrifice ) : void
rand System.Random
shapeToDivide int
shapeToSacrifice int
return void

SerializeNBT() public method

public SerializeNBT ( string tagName ) : NBTag
tagName string
return NBTag

ShiftShapeIndex() public method

public ShiftShapeIndex ( int source, int dest ) : void
source int
dest int
return void

SwapShapes() public method

public SwapShapes ( Random rand ) : void
rand Random
return void

Property Details

Divergence public_oe property

public double Divergence
return double

LastMutation public_oe property

public MutationType LastMutation
return MutationType

Shapes public_oe property

public Shape[] Shapes
return Shape[]