Show / Hide Table of Contents

Class Vertex

The Vertex Class

Inheritance
System.Object
GeoBase
Vertex
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
GeoBase.GeometryEntityType
GeoBase.PropertyChanged
GeoBase.UpdateGeometry(String)
GeoBase.OnPropertyChanged(String)
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 Source

Vertex(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 Source

X

X Coordinate of the Vertex

Declaration
public double X { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Y

Y Coordinate of the Vertex

Declaration
public double Y { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

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 Source

Equals(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

| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX