Barotrauma Server
Loading...
Searching...
No Matches
Voronoi2.GraphEdge Class Reference

Public Member Functions

 GraphEdge (Vector2 point1, Vector2 point2)
 
VoronoiCell AdjacentCell (VoronoiCell cell)
 
Vector2 GetNormal (VoronoiCell cell)
 Returns the normal of the edge that points outwards from the specified cell.
 
override string ToString ()
 

Public Attributes

Vector2 Point1
 
Vector2 Point2
 
Site Site1
 
Site Site2
 
VoronoiCell Cell1
 
VoronoiCell Cell2
 
bool IsSolid
 
bool OutsideLevel
 
bool NextToCave
 
bool NextToMainPath
 
bool NextToSidePath
 

Properties

Vector2 Center [get]
 

Constructor & Destructor Documentation

◆ GraphEdge()

Voronoi2.GraphEdge.GraphEdge ( Vector2 point1,
Vector2 point2 )

Member Function Documentation

◆ AdjacentCell()

VoronoiCell Voronoi2.GraphEdge.AdjacentCell ( VoronoiCell cell)

◆ GetNormal()

Vector2 Voronoi2.GraphEdge.GetNormal ( VoronoiCell cell)

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

◆ ToString()

override string Voronoi2.GraphEdge.ToString ( )

Member Data Documentation

◆ Cell1

VoronoiCell Voronoi2.GraphEdge.Cell1

◆ Cell2

VoronoiCell Voronoi2.GraphEdge.Cell2

◆ IsSolid

bool Voronoi2.GraphEdge.IsSolid

◆ NextToCave

bool Voronoi2.GraphEdge.NextToCave

◆ NextToMainPath

bool Voronoi2.GraphEdge.NextToMainPath

◆ NextToSidePath

bool Voronoi2.GraphEdge.NextToSidePath

◆ OutsideLevel

bool Voronoi2.GraphEdge.OutsideLevel

◆ Point1

Vector2 Voronoi2.GraphEdge.Point1

◆ Point2

Vector2 Voronoi2.GraphEdge.Point2

◆ Site1

Site Voronoi2.GraphEdge.Site1

◆ Site2

Site Voronoi2.GraphEdge.Site2

Property Documentation

◆ Center

Vector2 Voronoi2.GraphEdge.Center
get

The documentation for this class was generated from the following file: