Barotrauma Client Doc
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 More...
 
override string ToString ()
 

Public Attributes

Vector2 Point1
 
Site Site1
 
VoronoiCell Cell1
 
bool IsSolid
 
bool OutsideLevel
 
bool NextToCave
 

Properties

Vector2 Center [get]
 

Detailed Description

Definition at line 228 of file VoronoiElements.cs.

Constructor & Destructor Documentation

◆ GraphEdge()

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

Definition at line 243 of file VoronoiElements.cs.

Member Function Documentation

◆ AdjacentCell()

VoronoiCell Voronoi2.GraphEdge.AdjacentCell ( VoronoiCell  cell)

Definition at line 249 of file VoronoiElements.cs.

◆ GetNormal()

Vector2 Voronoi2.GraphEdge.GetNormal ( VoronoiCell  cell)

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

Definition at line 266 of file VoronoiElements.cs.

◆ ToString()

override string Voronoi2.GraphEdge.ToString ( )

Definition at line 277 of file VoronoiElements.cs.

Member Data Documentation

◆ Cell1

VoronoiCell Voronoi2.GraphEdge.Cell1

Definition at line 232 of file VoronoiElements.cs.

◆ IsSolid

bool Voronoi2.GraphEdge.IsSolid

Definition at line 234 of file VoronoiElements.cs.

◆ NextToCave

bool Voronoi2.GraphEdge.NextToCave

Definition at line 236 of file VoronoiElements.cs.

◆ OutsideLevel

bool Voronoi2.GraphEdge.OutsideLevel

Definition at line 235 of file VoronoiElements.cs.

◆ Point1

Vector2 Voronoi2.GraphEdge.Point1

Definition at line 230 of file VoronoiElements.cs.

◆ Site1

Site Voronoi2.GraphEdge.Site1

Definition at line 231 of file VoronoiElements.cs.

Property Documentation

◆ Center

Vector2 Voronoi2.GraphEdge.Center
get

Definition at line 238 of file VoronoiElements.cs.