Dungeon Architect
17.0.0
|
A ContourVertex is a vertex that stores 3 integer coordinates and a region ID, and is used to build Contours. More...
Public Member Functions | |
ContourVertex (int x, int y, int z, RegionId region) | |
Initializes a new instance of the ContourVertex struct. More... | |
ContourVertex (Vector3 vec, RegionId region) | |
Initializes a new instance of the SharpNav.ContourVertex struct. More... | |
ContourVertex (ContourVertex vert, int index) | |
Initializes a new instance of the ContourVertex struct as a copy. More... | |
ContourVertex (ContourVertex vert, RegionId region) | |
Initializes a new instance of the ContourVertex struct as a copy. More... | |
Static Public Member Functions | |
static bool | IsLeft (ref ContourVertex a, ref ContourVertex b, ref ContourVertex c) |
Gets the leftness of a triangle formed from 3 contour vertices. More... | |
static void | Area2D (ref ContourVertex a, ref ContourVertex b, ref ContourVertex c, out int area) |
Gets the 2D area of the triangle ABC. More... | |
Public Attributes | |
int | X |
The X coordinate. More... | |
int | Y |
The Y coordinate. More... | |
int | Z |
The Z coordinate. More... | |
RegionId | RegionId |
The region that the vertex belongs to. More... | |
A ContourVertex is a vertex that stores 3 integer coordinates and a region ID, and is used to build Contours.
Definition at line 22 of file ContourVertex.cs.
SharpNav.ContourVertex.ContourVertex | ( | int | x, |
int | y, | ||
int | z, | ||
RegionId | region | ||
) |
Initializes a new instance of the ContourVertex struct.
x | The X coordinate. |
y | The Y coordinate. |
z | The Z coordinate. |
region | The region ID. |
Definition at line 51 of file ContourVertex.cs.
Initializes a new instance of the SharpNav.ContourVertex struct.
vec | The array of X,Y,Z coordinates. |
region | The Region ID. |
Definition at line 64 of file ContourVertex.cs.
SharpNav.ContourVertex.ContourVertex | ( | ContourVertex | vert, |
int | index | ||
) |
Initializes a new instance of the ContourVertex struct as a copy.
vert | The original vertex. |
index | The index of the original vertex, which is temporarily stored in the RegionId field. |
Definition at line 77 of file ContourVertex.cs.
SharpNav.ContourVertex.ContourVertex | ( | ContourVertex | vert, |
RegionId | region | ||
) |
Initializes a new instance of the ContourVertex struct as a copy.
vert | The original vertex. |
region | The region that the vertex belongs to. |
Definition at line 90 of file ContourVertex.cs.
|
static |
Gets the 2D area of the triangle ABC.
a | Point A of triangle ABC. |
b | Point B of triangle ABC. |
c | Point C of triangle ABC. |
area | The 2D area of the triangle. |
Definition at line 119 of file ContourVertex.cs.
|
static |
Gets the leftness of a triangle formed from 3 contour vertices.
a | The first vertex. |
b | The second vertex. |
c | The third vertex. |
Definition at line 105 of file ContourVertex.cs.
RegionId SharpNav.ContourVertex.RegionId |
The region that the vertex belongs to.
Definition at line 42 of file ContourVertex.cs.
int SharpNav.ContourVertex.X |
The X coordinate.
Definition at line 27 of file ContourVertex.cs.
int SharpNav.ContourVertex.Y |
The Y coordinate.
Definition at line 32 of file ContourVertex.cs.
int SharpNav.ContourVertex.Z |
The Z coordinate.
Definition at line 37 of file ContourVertex.cs.