Vertex¶
Namespace: ThinkGeo.Core
This structure represents the point at which the sides of an angle intersect.
public struct Vertex
Inheritance Object → ValueType → Vertex
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¶
Remarks:
None
GetHashCode()¶
This method is an override of the GetHashCode functionality.
int GetHashCode()
Returns¶
Remarks:
None
Equals(Object)¶
This method is an override of the Equals functionality.
bool Equals(object obj)
Parameters¶
obj
Object
Returns¶
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¶
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.
TranslateByOffset(Double, Double, GeographyUnit, DistanceUnit)¶
void TranslateByOffset(double xOffset, double yOffset, GeographyUnit shapeUnit, DistanceUnit unitOfOffset)
Parameters¶
xOffset
Double
yOffset
Double
shapeUnit
GeographyUnit
unitOfOffset
DistanceUnit
TranslateByDegree(Double, Double, GeographyUnit, DistanceUnit)¶
void TranslateByDegree(double distance, double angleInDegrees, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters¶
distance
Double
angleInDegrees
Double
shapeUnit
GeographyUnit
distanceUnit
DistanceUnit
Rotate(Vertex, Double)¶
void Rotate(Vertex vertex, double degreeAngle)
Parameters¶
vertex
Vertex
degreeAngle
Double
Rotate(PointShape, Double)¶
void Rotate(PointShape pivotPoint, double degreeAngle)
Parameters¶
pivotPoint
PointShape
degreeAngle
Double
GetDistanceTo(BaseShape, GeographyUnit, DistanceUnit)¶
double GetDistanceTo(BaseShape targetShape, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters¶
targetShape
BaseShape
shapeUnit
GeographyUnit
distanceUnit
DistanceUnit
Returns¶
GetDistanceTo(Vertex, GeographyUnit, DistanceUnit)¶
double GetDistanceTo(Vertex targetVertex, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters¶
targetVertex
Vertex
shapeUnit
GeographyUnit
distanceUnit
DistanceUnit
Returns¶
GetDistanceFromVertex(Double, Double)¶
double GetDistanceFromVertex(double toX, double toY)
Parameters¶
toX
Double
toY
Double