Represents a voxel span in a CompactHeightfield.
More...
|
static void | OverlapMin (ref CompactSpan left, ref CompactSpan right, out int min) |
| If two CompactSpans overlap, find the minimum of the new overlapping CompactSpans. More...
|
|
static void | OverlapMax (ref CompactSpan left, ref CompactSpan right, out int max) |
| If two CompactSpans overlap, find the maximum of the new overlapping CompactSpans. More...
|
|
static CompactSpan | FromMinMax (int min, int max) |
| Creates a CompactSpan from a minimum boundary and a maximum boundary. More...
|
|
static void | FromMinMax (int min, int max, out CompactSpan span) |
| Creates a CompactSpan from a minimum boundary and a maximum boundary. More...
|
|
static void | SetConnection (Direction dir, int i, ref CompactSpan s) |
| Sets connection data to a span contained in a neighboring cell. More...
|
|
static void | UnsetConnection (Direction dir, ref CompactSpan s) |
| Un-sets connection data from a neighboring cell. More...
|
|
static int | GetConnection (ref CompactSpan s, Direction dir) |
| Gets the connection data for a neighboring cell in a specified direction. More...
|
|
Represents a voxel span in a CompactHeightfield.
Definition at line 13 of file CompactSpan.cs.
◆ CompactSpan()
SharpNav.CompactSpan.CompactSpan |
( |
int |
minimum, |
|
|
int |
height |
|
) |
| |
Initializes a new instance of the CompactSpan struct.
- Parameters
-
minimum | The span minimum. |
height | The number of voxels the span contains. |
Definition at line 61 of file CompactSpan.cs.
◆ FromMinMax() [1/2]
static CompactSpan SharpNav.CompactSpan.FromMinMax |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
|
static |
◆ FromMinMax() [2/2]
static void SharpNav.CompactSpan.FromMinMax |
( |
int |
min, |
|
|
int |
max, |
|
|
out CompactSpan |
span |
|
) |
| |
|
static |
◆ GetConnection() [1/2]
int SharpNav.CompactSpan.GetConnection |
( |
Direction |
dir | ) |
|
Gets the connection data for a neighboring call in a specified direction.
- Parameters
-
- Returns
- The index of the span in the neighboring cell.
Definition at line 261 of file CompactSpan.cs.
◆ GetConnection() [2/2]
Gets the connection data for a neighboring cell in a specified direction.
- Parameters
-
s | The CompactSpan to get the connection data from. |
dir | The direction. |
- Returns
- The index of the span in the neighboring cell.
Definition at line 239 of file CompactSpan.cs.
◆ IsConnected()
bool SharpNav.CompactSpan.IsConnected |
( |
Direction |
dir | ) |
|
Gets a value indicating whether the span is connected to another span in a specified direction.
- Parameters
-
- Returns
- A value indicating whether the specified direction has a connected span.
Definition at line 271 of file CompactSpan.cs.
◆ OverlapMax()
If two CompactSpans overlap, find the maximum of the new overlapping CompactSpans.
- Parameters
-
Definition at line 132 of file CompactSpan.cs.
◆ OverlapMin()
If two CompactSpans overlap, find the minimum of the new overlapping CompactSpans.
- Parameters
-
Definition at line 121 of file CompactSpan.cs.
◆ SetConnection()
Sets connection data to a span contained in a neighboring cell.
- Parameters
-
dir | The direction of the cell. |
i | The index of the span in the neighboring cell. |
s | The CompactSpan to set the data for. |
Definition at line 183 of file CompactSpan.cs.
◆ UnsetConnection()
Un-sets connection data from a neighboring cell.
- Parameters
-
dir | The direction of the cell. |
s | The CompactSpan to set the data for. |
Definition at line 212 of file CompactSpan.cs.
◆ ConnectionEast
byte SharpNav.CompactSpan.ConnectionEast |
A byte representing the index of the connected span in the cell directly to the east.
Definition at line 38 of file CompactSpan.cs.
◆ ConnectionNorth
byte SharpNav.CompactSpan.ConnectionNorth |
A byte representing the index of the connected span in the cell directly to the north.
Definition at line 33 of file CompactSpan.cs.
◆ ConnectionSouth
byte SharpNav.CompactSpan.ConnectionSouth |
A byte representing the index of the connected span in the cell directly to the south.
Definition at line 43 of file CompactSpan.cs.
◆ ConnectionWest
byte SharpNav.CompactSpan.ConnectionWest |
A byte representing the index of the connected span in the cell directly to the west.
Definition at line 28 of file CompactSpan.cs.
◆ Height
int SharpNav.CompactSpan.Height |
The number of voxels contained in the span.
Definition at line 23 of file CompactSpan.cs.
◆ Minimum
int SharpNav.CompactSpan.Minimum |
◆ Region
◆ ConnectionCount
int SharpNav.CompactSpan.ConnectionCount |
|
get |
◆ HasUpperBound
bool SharpNav.CompactSpan.HasUpperBound |
|
get |
Gets a value indicating whether the span has an upper bound or goes to "infinity".
Definition at line 75 of file CompactSpan.cs.
◆ Maximum
int SharpNav.CompactSpan.Maximum |
|
get |
The documentation for this struct was generated from the following file:
- C:/gamedev/unity/DA20.1X/Assets/CodeRespawn/DungeonArchitect/ThirdParty/SharpNav/CompactSpan.cs