Barotrauma Client Doc
Voronoi2.VoronoiCell Class Reference

Public Member Functions

 VoronoiCell (Vector2[] vertices)
 
 VoronoiCell (Site site)
 
bool IsPointInside (Vector2 point)
 
bool IsPointInsideAABB (Vector2 point2, float margin)
 

Public Attributes

List< GraphEdgeEdges
 
Site Site
 
List< Vector2 > BodyVertices
 
Body Body
 
CellType CellType
 
Vector2 Translation
 
bool Island
 
bool IsDestructible
 
bool DoesDamage
 
Action OnDestroyed
 Executed when the cell is destroyed (only applies to destructible level walls) More...
 

Properties

Vector2 Center [get]
 

Detailed Description

Definition at line 143 of file VoronoiElements.cs.

Constructor & Destructor Documentation

◆ VoronoiCell() [1/2]

Voronoi2.VoronoiCell.VoronoiCell ( Vector2[]  vertices)

Definition at line 171 of file VoronoiElements.cs.

◆ VoronoiCell() [2/2]

Voronoi2.VoronoiCell.VoronoiCell ( Site  site)

Definition at line 194 of file VoronoiElements.cs.

Member Function Documentation

◆ IsPointInside()

bool Voronoi2.VoronoiCell.IsPointInside ( Vector2  point)

Definition at line 202 of file VoronoiElements.cs.

◆ IsPointInsideAABB()

bool Voronoi2.VoronoiCell.IsPointInsideAABB ( Vector2  point2,
float  margin 
)

Definition at line 213 of file VoronoiElements.cs.

Member Data Documentation

◆ Body

Body Voronoi2.VoronoiCell.Body

Definition at line 150 of file VoronoiElements.cs.

◆ BodyVertices

List<Vector2> Voronoi2.VoronoiCell.BodyVertices

Definition at line 148 of file VoronoiElements.cs.

◆ CellType

CellType Voronoi2.VoronoiCell.CellType

Definition at line 152 of file VoronoiElements.cs.

◆ DoesDamage

bool Voronoi2.VoronoiCell.DoesDamage

Definition at line 159 of file VoronoiElements.cs.

◆ Edges

List<GraphEdge> Voronoi2.VoronoiCell.Edges

Definition at line 145 of file VoronoiElements.cs.

◆ IsDestructible

bool Voronoi2.VoronoiCell.IsDestructible

Definition at line 158 of file VoronoiElements.cs.

◆ Island

bool Voronoi2.VoronoiCell.Island

Definition at line 156 of file VoronoiElements.cs.

◆ OnDestroyed

Action Voronoi2.VoronoiCell.OnDestroyed

Executed when the cell is destroyed (only applies to destructible level walls)

Definition at line 164 of file VoronoiElements.cs.

◆ Site

Site Voronoi2.VoronoiCell.Site

Definition at line 146 of file VoronoiElements.cs.

◆ Translation

Vector2 Voronoi2.VoronoiCell.Translation

Definition at line 154 of file VoronoiElements.cs.

Property Documentation

◆ Center

Vector2 Voronoi2.VoronoiCell.Center
get

Definition at line 166 of file VoronoiElements.cs.