Class Vertex
The Vertex Class
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dxflib.Geometry
Assembly: Dxflib.dll
Syntax
public class Vertex : GeoBase, INotifyPropertyChanged
Constructors
| Improve this Doc View SourceVertex(Double, Double, Double)
Vertex Constructor
Declaration
public Vertex(double x, double y, double z = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | x coordinate |
System.Double | y | y coordinate |
System.Double | z | z coordinate |
Properties
| Improve this Doc View SourceX
X Coordinate of the Vertex
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Y
Y Coordinate of the Vertex
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Z
z coordinate, note that when setting to a new value a geometry event will be raised
Declaration
public double Z { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceEquals(Vertex)
Equals function override for a vertex input. Two Vertices are Equal if all components (x, y, z) are the same within the Tolerance.
Declaration
public bool Equals(Vertex vertex)
Parameters
Type | Name | Description |
---|---|---|
Vertex | vertex | The Vertex to be compared to |
Returns
Type | Description |
---|---|
System.Boolean | True if the vertices are the same point |
Equals(Object)
Returns true if the object can be cast to a vertex and the points are the same.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The input object |
Returns
Type | Description |
---|---|
System.Boolean | True if the vertices are the same point |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Gets the hash of all the elements
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Implements
System.ComponentModel.INotifyPropertyChanged