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.
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¶
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¶
/Bw=(Vertex, double)¶
void /Bw=(Vertex vertex, double degreeAngle)
Parameters¶
vertex Vertex
degreeAngle double
Returns¶
/Bw=(PointShape, double)¶
void /Bw=(PointShape pivotPoint, double degreeAngle)
Parameters¶
pivotPoint PointShape
degreeAngle double
Returns¶
/Rw=(BaseShape, GeographyUnit, DistanceUnit)¶
double /Rw=(BaseShape targetShape, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters¶
targetShape BaseShape
shapeUnit GeographyUnit
distanceUnit DistanceUnit
Returns¶
/Rw=(Vertex, GeographyUnit, DistanceUnit)¶
double /Rw=(Vertex targetVertex, GeographyUnit shapeUnit, DistanceUnit distanceUnit)
Parameters¶
targetVertex Vertex
shapeUnit GeographyUnit
distanceUnit DistanceUnit
Returns¶
/hw=(double, double)¶
double /hw=(double toX, double toY)
Parameters¶
toX double
toY double