C# Class Voronoi2.GraphEdge

Show file Open project: evilfactory/Barotrauma-lua-attempt Class Usage Examples

Public Properties

Property Type Description
Cell1 Voronoi2.VoronoiCell
IsSolid bool
NextToCave bool
OutsideLevel bool
Point1 Vector2
Site1 Site

Public Methods

Method Description
AdjacentCell ( Voronoi2.VoronoiCell cell ) : Voronoi2.VoronoiCell
GetNormal ( Voronoi2.VoronoiCell cell ) : Vector2

Returns the normal of the edge that points outwards from the specified cell

GraphEdge ( Vector2 point1, Vector2 point2 ) : Barotrauma
ToString ( ) : string

Method Details

AdjacentCell() public method

public AdjacentCell ( Voronoi2.VoronoiCell cell ) : Voronoi2.VoronoiCell
cell Voronoi2.VoronoiCell
return Voronoi2.VoronoiCell

GetNormal() public method

Returns the normal of the edge that points outwards from the specified cell
public GetNormal ( Voronoi2.VoronoiCell cell ) : Vector2
cell Voronoi2.VoronoiCell
return Vector2

GraphEdge() public method

public GraphEdge ( Vector2 point1, Vector2 point2 ) : Barotrauma
point1 Vector2
point2 Vector2
return Barotrauma

ToString() public method

public ToString ( ) : string
return string

Property Details

Cell1 public property

public VoronoiCell,Voronoi2 Cell1
return Voronoi2.VoronoiCell

IsSolid public property

public bool IsSolid
return bool

NextToCave public property

public bool NextToCave
return bool

OutsideLevel public property

public bool OutsideLevel
return bool

Point1 public property

public Vector2 Point1
return Vector2

Site1 public property

public Site,Voronoi2 Site1
return Site