C# Class Voronoi.FortuneVoronoi

Mostrar archivo Open project: jesta88/Unity-Voronoi Class Usage Examples

Public Properties

Property Type Description
EPSILON float
valid bool

Protected Properties

Property Type Description
beachLine RBTree
cells List
circleEvents RBTree
edges List

Public Methods

Method Description
AddBeachSection ( Point site ) : void
AttachCircleEvent ( BeachSection arc ) : void
ClipEdge ( Edge edge, Bounds bbox ) : bool
ClipEdges ( Bounds bbox ) : void
CloseCells ( Bounds bbox ) : void
Compute ( List sites, Bounds bbox ) : VoronoiGraph
ConnectEdge ( Edge edge, Bounds bbox ) : bool
CreateBeachSection ( Point site ) : BeachSection
CreateBorderEdge ( Point lSite, Point va, Point vb ) : Edge
CreateEdge ( Point lSite, Point rSite, Point va, Point vb ) : Edge
DetachBeachSection ( BeachSection beachSection ) : void
DetachCircleEvent ( BeachSection arc ) : void
FortuneVoronoi ( ) : System.Collections
LeftBreakPoint ( BeachSection arc, float directrix ) : float
RemoveBeachSection ( BeachSection beachSection ) : void
Reset ( ) : void
RightBreakPoint ( BeachSection arc, float directrix ) : float
equalWithEpsilon ( float a, float b ) : bool
greaterThanOrEqualWithEpsilon ( float a, float b ) : bool
greaterThanWithEpsilon ( float a, float b ) : bool
lessThanOrEqualWithEpsilon ( float a, float b ) : bool
lessThanWithEpsilon ( float a, float b ) : bool

Method Details

AddBeachSection() public method

public AddBeachSection ( Point site ) : void
site Point
return void

AttachCircleEvent() public method

public AttachCircleEvent ( BeachSection arc ) : void
arc BeachSection
return void

ClipEdge() public method

public ClipEdge ( Edge edge, Bounds bbox ) : bool
edge Edge
bbox UnityEngine.Bounds
return bool

ClipEdges() public method

public ClipEdges ( Bounds bbox ) : void
bbox UnityEngine.Bounds
return void

CloseCells() public method

public CloseCells ( Bounds bbox ) : void
bbox UnityEngine.Bounds
return void

Compute() public method

public Compute ( List sites, Bounds bbox ) : VoronoiGraph
sites List
bbox UnityEngine.Bounds
return VoronoiGraph

ConnectEdge() public method

public ConnectEdge ( Edge edge, Bounds bbox ) : bool
edge Edge
bbox UnityEngine.Bounds
return bool

CreateBeachSection() public method

public CreateBeachSection ( Point site ) : BeachSection
site Point
return BeachSection

CreateBorderEdge() public method

public CreateBorderEdge ( Point lSite, Point va, Point vb ) : Edge
lSite Point
va Point
vb Point
return Edge

CreateEdge() public method

public CreateEdge ( Point lSite, Point rSite, Point va, Point vb ) : Edge
lSite Point
rSite Point
va Point
vb Point
return Edge

DetachBeachSection() public method

public DetachBeachSection ( BeachSection beachSection ) : void
beachSection BeachSection
return void

DetachCircleEvent() public method

public DetachCircleEvent ( BeachSection arc ) : void
arc BeachSection
return void

FortuneVoronoi() public method

public FortuneVoronoi ( ) : System.Collections
return System.Collections

LeftBreakPoint() public method

public LeftBreakPoint ( BeachSection arc, float directrix ) : float
arc BeachSection
directrix float
return float

RemoveBeachSection() public method

public RemoveBeachSection ( BeachSection beachSection ) : void
beachSection BeachSection
return void

Reset() public method

public Reset ( ) : void
return void

RightBreakPoint() public method

public RightBreakPoint ( BeachSection arc, float directrix ) : float
arc BeachSection
directrix float
return float

equalWithEpsilon() public method

public equalWithEpsilon ( float a, float b ) : bool
a float
b float
return bool

greaterThanOrEqualWithEpsilon() public method

public greaterThanOrEqualWithEpsilon ( float a, float b ) : bool
a float
b float
return bool

greaterThanWithEpsilon() public method

public greaterThanWithEpsilon ( float a, float b ) : bool
a float
b float
return bool

lessThanOrEqualWithEpsilon() public method

public lessThanOrEqualWithEpsilon ( float a, float b ) : bool
a float
b float
return bool

lessThanWithEpsilon() public method

public lessThanWithEpsilon ( float a, float b ) : bool
a float
b float
return bool

Property Details

EPSILON public_oe static_oe property

public static float EPSILON
return float

beachLine protected_oe property

protected RBTree beachLine
return RBTree

cells protected_oe property

protected List cells
return List

circleEvents protected_oe property

protected RBTree circleEvents
return RBTree

edges protected_oe property

protected List edges
return List

valid public_oe property

public bool valid
return bool