Dungeon Architect
17.0.0
|
A vertex inside a PolyMesh. More...
Classes | |
class | RoughYEqualityComparer |
An implementation of IEqualityComparer<T> of PolyVertex that allows for the Y coordinates of two vertices to be within a specified range and still be considered equal. | |
Public Member Functions | |
PolyVertex (int x, int y, int z) | |
Initializes a new instance of the PolyVertex struct. More... | |
bool | Equals (PolyVertex other) |
Compares another PolyVertex with this instance for equality. More... | |
override bool | Equals (object obj) |
Compares an object with this instance for equality. More... | |
override int | GetHashCode () |
Gets a hash code unique to the contents of this instance. More... | |
override string | ToString () |
Gets a human-readable version of the vertex. More... | |
Static Public Member Functions | |
static PolyVertex | ComponentMin (PolyVertex a, PolyVertex b) |
Calculates the component-wise minimum of two vertices. More... | |
static void | ComponentMin (ref PolyVertex a, ref PolyVertex b, out PolyVertex result) |
Calculates the component-wise minimum of two vertices. More... | |
static PolyVertex | ComponentMax (PolyVertex a, PolyVertex b) |
Calculates the component-wise maximum of two vertices. More... | |
static void | ComponentMax (ref PolyVertex a, ref PolyVertex b, out PolyVertex result) |
Calculates the component-wise maximum of two vertices. More... | |
static bool | IsLeft (ref PolyVertex a, ref PolyVertex b, ref PolyVertex c) |
Gets the leftness of a triangle formed from 3 contour vertices. More... | |
static bool | IsLeftOn (ref PolyVertex a, ref PolyVertex b, ref PolyVertex c) |
Gets the leftness (left or on) of a triangle formed from 3 contour vertices. More... | |
static bool | Equal2D (ref PolyVertex a, ref PolyVertex b) |
Compares vertex equality in 2D. More... | |
static bool | Intersect (ref PolyVertex a, ref PolyVertex b, ref PolyVertex c, ref PolyVertex d) |
True if and only if segments AB and CD intersect, properly or improperly. More... | |
static bool | IntersectProp (ref PolyVertex a, ref PolyVertex b, ref PolyVertex c, ref PolyVertex d) |
True if and only if segments AB and CD intersect properly. More... | |
static bool | IsBetween (ref PolyVertex a, ref PolyVertex b, ref PolyVertex c) |
True if and only if A, B, and C are collinear and point C lies on closed segment AB More... | |
static bool | IsCollinear (ref PolyVertex a, ref PolyVertex b, ref PolyVertex c) |
True if and only if points A, B, and C are collinear. More... | |
static void | Area2D (ref PolyVertex a, ref PolyVertex b, ref PolyVertex c, out int area) |
Gets the 2D area of the triangle ABC. 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... | |
static bool | operator== (PolyVertex left, PolyVertex right) |
Compares two vertices for equality. More... | |
static bool | operator!= (PolyVertex left, PolyVertex right) |
Compares two vertices for inequality. More... | |
Public Attributes | |
int | X |
The X coordinate. More... | |
int | Y |
The Y coordinate. More... | |
int | Z |
The Z coordinate. More... | |
A vertex inside a PolyMesh.
Definition at line 14 of file PolyVertex.cs.
SharpNav.PolyVertex.PolyVertex | ( | int | x, |
int | y, | ||
int | z | ||
) |
Initializes a new instance of the PolyVertex struct.
x | The X coordinate. |
y | The Y coordinate. |
z | The Z coordinate. |
Definition at line 37 of file PolyVertex.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 231 of file PolyVertex.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 219 of file PolyVertex.cs.
|
static |
Calculates the component-wise maximum of two vertices.
a | A vertex. |
b | Another vertex. |
Definition at line 76 of file PolyVertex.cs.
|
static |
Calculates the component-wise maximum of two vertices.
a | A vertex. |
b | Another vertex. |
result | The component-wise maximum of the two vertices. |
Definition at line 89 of file PolyVertex.cs.
|
static |
Calculates the component-wise minimum of two vertices.
a | A vertex. |
b | Another vertex. |
Definition at line 50 of file PolyVertex.cs.
|
static |
Calculates the component-wise minimum of two vertices.
a | A vertex. |
b | Another vertex. |
result | The component-wise minimum of the two vertices. |
Definition at line 63 of file PolyVertex.cs.
|
static |
Compares vertex equality in 2D.
a | A vertex. |
b | Another vertex. |
Definition at line 130 of file PolyVertex.cs.
override bool SharpNav.PolyVertex.Equals | ( | object | obj | ) |
Compares an object with this instance for equality.
obj | An object. |
Definition at line 273 of file PolyVertex.cs.
bool SharpNav.PolyVertex.Equals | ( | PolyVertex | other | ) |
Compares another PolyVertex with this instance for equality.
other | The other instance. |
Definition at line 263 of file PolyVertex.cs.
override int SharpNav.PolyVertex.GetHashCode | ( | ) |
Gets a hash code unique to the contents of this instance.
Definition at line 286 of file PolyVertex.cs.
|
static |
True if and only if segments AB and CD intersect, properly or improperly.
a | Point A of segment AB. |
b | Point B of segment AB. |
c | Point C of segment CD. |
d | Point D of segment CD. |
Definition at line 143 of file PolyVertex.cs.
|
static |
True if and only if segments AB and CD intersect properly.
Proper intersection: A point interior to both segments is shared. Properness determined by strict leftness.
a | Point A of segment AB. |
b | Point B of segment AB. |
c | Point C of segment CD. |
d | Point D of segment CD. |
Definition at line 167 of file PolyVertex.cs.
|
static |
True if and only if A, B, and C are collinear and point C lies on closed segment AB
a | Point A of segment AB. |
b | Point B of segment AB. |
c | Point C. |
Definition at line 187 of file PolyVertex.cs.
|
static |
True if and only if points A, B, and C are collinear.
a | Point A. |
b | Point B. |
c | Point C. |
Definition at line 205 of file PolyVertex.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 103 of file PolyVertex.cs.
|
static |
Gets the leftness (left or on) of a triangle formed from 3 contour vertices.
a | The first vertex. |
b | The second vertex. |
c | The third vertex. |
Definition at line 117 of file PolyVertex.cs.
|
static |
Compares two vertices for inequality.
left | A vertex. |
right | Another vertex. |
Definition at line 253 of file PolyVertex.cs.
|
static |
Compares two vertices for equality.
left | A vertex. |
right | Another vertex. |
Definition at line 242 of file PolyVertex.cs.
override string SharpNav.PolyVertex.ToString | ( | ) |
Gets a human-readable version of the vertex.
Definition at line 296 of file PolyVertex.cs.
int SharpNav.PolyVertex.X |
The X coordinate.
Definition at line 19 of file PolyVertex.cs.
int SharpNav.PolyVertex.Y |
The Y coordinate.
Definition at line 24 of file PolyVertex.cs.
int SharpNav.PolyVertex.Z |
The Z coordinate.
Definition at line 29 of file PolyVertex.cs.