Skip to content

Vertex

Namespace: ThinkGeo.Core

This structure represents the point at which the sides of an angle intersect.

public struct Vertex

Inheritance objectValueTypeVertex

Properties

X

This property returns the horizontal value of the vertex.

public double X { get; set; }

Property Value

double
This property returns the horizontal value of the vertex.

Remarks:

None

Y

This property returns the vertical value of the vertex.

public double Y { get; set; }

Property Value

double
This property returns the vertical value of the vertex.

Remarks:

None

Constructors

Vertex(double, double)

This is the constructor used to create a vertex.

Vertex(double x, double y)

Parameters

x double
This parameter represents the horizontal value.

y double
This parameter represents the vertical value.

Remarks:

None

Vertex(PointShape)

This is the constructor used to create a vertex.

Vertex(PointShape point)

Parameters

point PointShape
This parameter is the PointShape you want to convert to a Vertex.

Remarks:

None

Methods

ToString()

This method is an override of the ToString functionality.

string ToString()

Returns

string

Remarks:

None

GetHashCode()

This method is an override of the GetHashCode functionality.

int GetHashCode()

Returns

int

Remarks:

None

Equals(object)

This method is an override of the Equals functionality.

bool Equals(object obj)

Parameters

obj object

Returns

bool

Remarks:

None

Add(Vertex)

This method adds the target vertex to the current vertex.

Vertex Add(Vertex targetVertex)

Parameters

targetVertex Vertex
This parameter represents the vertex you wish to add to the current vertex.

Returns

Vertex

Remarks:

None

FindMiddleVertexBetweenTwoVertices(Vertex, Vertex)

This method returns the middle Vertex of a straight line which two vertices are passing in.

Vertex FindMiddleVertexBetweenTwoVertices(Vertex vertex1, Vertex vertex2)

Parameters

vertex1 Vertex
start vertex of a straight line

vertex2 Vertex
en vertex of a straight line

Returns

Vertex
This method returns the middle Vertex between the vertices which passing in.

9hw=(double, double, GeographyUnit, DistanceUnit)

void 9hw=(double xOffset, double yOffset, GeographyUnit shapeUnit, DistanceUnit unitOfOffset)

Parameters

xOffset double

yOffset double

shapeUnit GeographyUnit

unitOfOffset DistanceUnit

Returns

void

9xw=(double, double, GeographyUnit, DistanceUnit)

void 9xw=(double distance, double angleInDegrees, GeographyUnit shapeUnit, DistanceUnit distanceUnit)

Parameters

distance double

angleInDegrees double

shapeUnit GeographyUnit

distanceUnit DistanceUnit

Returns

void

/Bw=(Vertex, double)

void /Bw=(Vertex vertex, double degreeAngle)

Parameters

vertex Vertex

degreeAngle double

Returns

void

/Bw=(PointShape, double)

void /Bw=(PointShape pivotPoint, double degreeAngle)

Parameters

pivotPoint PointShape

degreeAngle double

Returns

void

/Rw=(BaseShape, GeographyUnit, DistanceUnit)

double /Rw=(BaseShape targetShape, GeographyUnit shapeUnit, DistanceUnit distanceUnit)

Parameters

targetShape BaseShape

shapeUnit GeographyUnit

distanceUnit DistanceUnit

Returns

double

/Rw=(Vertex, GeographyUnit, DistanceUnit)

double /Rw=(Vertex targetVertex, GeographyUnit shapeUnit, DistanceUnit distanceUnit)

Parameters

targetVertex Vertex

shapeUnit GeographyUnit

distanceUnit DistanceUnit

Returns

double

/hw=(double, double)

double /hw=(double toX, double toY)

Parameters

toX double

toY double

Returns

double