My Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
TriangleNet.Geometry.Vertex Class Reference

The vertex data structure. More...

Inheritance diagram for TriangleNet.Geometry.Vertex:
TriangleNet.Geometry.Point

Public Member Functions

 Vertex ()
 Initializes a new instance of the Vertex class.
 
 Vertex (float x, float y)
 Initializes a new instance of the Vertex class.
 
 Vertex (float x, float y, int mark)
 Initializes a new instance of the Vertex class.
 
override int GetHashCode ()
 
- Public Member Functions inherited from TriangleNet.Geometry.Point
 Point (float x, float y)
 
 Point (float x, float y, int label)
 
override bool Equals (object obj)
 
bool Equals (Point p)
 
int CompareTo (Point other)
 
override int GetHashCode ()
 

Static Public Member Functions

static operator Vector2 (Vertex p)
 
static operator Vector3 (Vertex p)
 
- Static Public Member Functions inherited from TriangleNet.Geometry.Point
static bool operator== (Point a, Point b)
 
static bool operator!= (Point a, Point b)
 
static operator Vector2 (Point p)
 
static operator Vector3 (Point p)
 

Properties

VertexType Type [get]
 Gets the vertex type.
 
float this[int i] [get]
 Gets the specified coordinate of the vertex.
 
- Properties inherited from TriangleNet.Geometry.Point
int ID [get, set]
 Gets or sets the vertex id.
 
float X [get, set]
 Gets or sets the vertex x coordinate.
 
float Y [get, set]
 Gets or sets the vertex y coordinate.
 
int Label [get, set]
 Gets or sets a general-purpose label.
 

Detailed Description

The vertex data structure.

Constructor & Destructor Documentation

◆ Vertex() [1/2]

TriangleNet.Geometry.Vertex.Vertex ( float  x,
float  y 
)
inline

Initializes a new instance of the Vertex class.

Parameters
xThe x coordinate of the vertex.
yThe y coordinate of the vertex.

◆ Vertex() [2/2]

TriangleNet.Geometry.Vertex.Vertex ( float  x,
float  y,
int  mark 
)
inline

Initializes a new instance of the Vertex class.

Parameters
xThe x coordinate of the vertex.
yThe y coordinate of the vertex.
markThe boundary mark.

Property Documentation

◆ this[int i]

float TriangleNet.Geometry.Vertex.this[int i]
get

Gets the specified coordinate of the vertex.

Parameters
iCoordinate index.
Returns
X coordinate, if index is 0, Y coordinate, if index is 1.

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