C# Class Nez.Verlet.Tree

fractal tree. Converted from https://github.com/subprotocol/verlet-js/blob/master/examples/tree.html
Inheritance: Composite
Show file Open project: prime31/Nez

Public Methods

Method Description
Tree ( Vector2 origin, int depth = 5, float branchLength = 70, float theta = 0.4f, float segmentCoef = 0.95f ) : Microsoft.Xna.Framework

Private Methods

Method Description
createTreeBranch ( Particle parent, int i, int nMax, float segmentCoef, Vector2 normal, float branchLength, float theta ) : Particle

Method Details

Tree() public method

public Tree ( Vector2 origin, int depth = 5, float branchLength = 70, float theta = 0.4f, float segmentCoef = 0.95f ) : Microsoft.Xna.Framework
origin Microsoft.Xna.Framework.Vector2
depth int
branchLength float
theta float
segmentCoef float
return Microsoft.Xna.Framework