Barotrauma Client
Loading...
Searching...
No Matches
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< Vector2BodyVertices
 
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)
 

Properties

Vector2 Center [get]
 

Constructor & Destructor Documentation

◆ VoronoiCell() [1/2]

Voronoi2.VoronoiCell.VoronoiCell ( Vector2[] vertices)

◆ VoronoiCell() [2/2]

Voronoi2.VoronoiCell.VoronoiCell ( Site site)

Member Function Documentation

◆ IsPointInside()

bool Voronoi2.VoronoiCell.IsPointInside ( Vector2 point)

◆ IsPointInsideAABB()

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

Member Data Documentation

◆ Body

Body Voronoi2.VoronoiCell.Body

◆ BodyVertices

List<Vector2> Voronoi2.VoronoiCell.BodyVertices

◆ CellType

CellType Voronoi2.VoronoiCell.CellType

◆ DoesDamage

bool Voronoi2.VoronoiCell.DoesDamage

◆ Edges

List<GraphEdge> Voronoi2.VoronoiCell.Edges

◆ IsDestructible

bool Voronoi2.VoronoiCell.IsDestructible

◆ Island

bool Voronoi2.VoronoiCell.Island

◆ OnDestroyed

Action Voronoi2.VoronoiCell.OnDestroyed

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

◆ Site

Site Voronoi2.VoronoiCell.Site

◆ Translation

Vector2 Voronoi2.VoronoiCell.Translation

Property Documentation

◆ Center

Vector2 Voronoi2.VoronoiCell.Center
get

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