Class GeometricExtensions
Contains extensions for the geometric graph and edge.
Inheritance
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class GeometricExtensions
Methods
AddEdge(GeometricGraph, UInt32, UInt32, UInt32[], Coordinate[])
Adds a new edge.
Declaration
public static uint AddEdge(this GeometricGraph graph, uint vertex1, uint vertex2, uint[] data, params Coordinate[] shape)
Parameters
|
GeometricGraph
graph
|
|
System.UInt32
vertex1
|
|
System.UInt32
vertex2
|
|
System.UInt32[]
data
|
|
Coordinate[]
shape
|
Returns
|
System.UInt32
|
AddEdge(GeometricGraph, UInt32, UInt32, UInt32[], IEnumerable<Coordinate>)
Adds a new edge.
Declaration
public static uint AddEdge(this GeometricGraph graph, uint vertex1, uint vertex2, uint[] data, IEnumerable<Coordinate> shape)
Parameters
|
GeometricGraph
graph
|
|
System.UInt32
vertex1
|
|
System.UInt32
vertex2
|
|
System.UInt32[]
data
|
|
IEnumerable<Coordinate>
shape
|
Returns
|
System.UInt32
|
GetEdge(GeometricGraph, Int64)
Gets the given edge.
Declaration
public static GeometricEdge GetEdge(this GeometricGraph graph, long directedEdgeId)
Parameters
|
GeometricGraph
graph
|
|
System.Int64
directedEdgeId
|
Returns
|
GeometricEdge
|
GetOther(GeometricEdge, UInt32)
Gets the vertex on this edge that is not the given vertex.
Declaration
public static uint GetOther(this GeometricEdge edge, uint vertex)
Parameters
|
GeometricEdge
edge
|
|
System.UInt32
vertex
|
Returns
|
System.UInt32
|
GetShape(GeometricGraph, GeometricEdge)
Gets the shape points including the two vertices.
Declaration
public static List<Coordinate> GetShape(this GeometricGraph graph, GeometricEdge geometricEdge)
Parameters
|
GeometricGraph
graph
|
|
GeometricEdge
geometricEdge
|
Returns
|
List<Coordinate>
|
GetShape(GeometricGraph, GeometricEdge, Single, Single)
Gets the shape points starting at the given vertex until the max distance.
Declaration
public static List<Coordinate> GetShape(this GeometricGraph graph, GeometricEdge geometricEdge, float minDistance, float maxDistance)
Parameters
|
GeometricGraph
graph
|
|
GeometricEdge
geometricEdge
|
|
System.Single
minDistance
|
|
System.Single
maxDistance
|
Returns
|
List<Coordinate>
|
GetShape(GeometricGraph, GeometricEdge, UInt32, Single)
Gets the shape points starting at the given vertex until the max distance.
Declaration
public static List<Coordinate> GetShape(this GeometricGraph graph, GeometricEdge geometricEdge, uint vertex, float maxDistance)
Parameters
|
GeometricGraph
graph
|
|
GeometricEdge
geometricEdge
|
|
System.UInt32
vertex
|
|
System.Single
maxDistance
|
Returns
|
List<Coordinate>
|
GetShape(GeometricGraph, Int64)
Gets the shape of the given edge.
Declaration
public static ShapeBase GetShape(this GeometricGraph graph, long directedEdgeId)
Parameters
|
GeometricGraph
graph
|
|
System.Int64
directedEdgeId
|
Returns
|
ShapeBase
|
IdDirected(GeometricEdge)
Gets a directed edge id.
Declaration
public static long IdDirected(this GeometricEdge edge)
Parameters
|
GeometricEdge
edge
|
Returns
|
System.Int64
|
IdDirected(GeometricGraph.EdgeEnumerator)
Gets a directed edge id.
Declaration
public static long IdDirected(this GeometricGraph.EdgeEnumerator edge)
Parameters
|
GeometricGraph.EdgeEnumerator
edge
|
Returns
|
System.Int64
|
Length(GeometricGraph, GeometricEdge)
Gets the length of an edge.
Declaration
public static float Length(this GeometricGraph graph, GeometricEdge edge)
Parameters
|
GeometricGraph
graph
|
|
GeometricEdge
edge
|
Returns
|
System.Single
|
LocationOnGraph(GeometricGraph, UInt32, UInt16)
Returns the location on the graph.
Declaration
public static Coordinate LocationOnGraph(this GeometricGraph graph, uint edgeId, ushort offset)
Parameters
|
GeometricGraph
graph
|
|
System.UInt32
edgeId
|
|
System.UInt16
offset
|
Returns
|
Coordinate
|
MoveToEdge(GeometricGraph.EdgeEnumerator, Int64)
Moves to the given directed edge-id.
Declaration
public static void MoveToEdge(this GeometricGraph.EdgeEnumerator enumerator, long directedEdgeId)
Parameters
|
GeometricGraph.EdgeEnumerator
enumerator
|
|
System.Int64
directedEdgeId
|
ProjectOn(GeometricGraph, GeometricEdge, Single, Single, out Single, out Single, out Single)
Projects a point onto an edge.
Declaration
public static bool ProjectOn(this GeometricGraph graph, GeometricEdge edge, float latitude, float longitude, out float projectedLatitude, out float projectedLongitude, out float projectedDistanceFromFirst)
Parameters
|
GeometricGraph
graph
|
|
GeometricEdge
edge
|
|
System.Single
latitude
|
|
System.Single
longitude
|
|
System.Single
projectedLatitude
|
|
System.Single
projectedLongitude
|
|
System.Single
projectedDistanceFromFirst
|
Returns
|
System.Boolean
|
ProjectOn(GeometricGraph, GeometricEdge, Single, Single, out Single, out Single, out Single, out Int32, out Single)
Projects a point onto an edge.
Declaration
public static bool ProjectOn(this GeometricGraph graph, GeometricEdge edge, float latitude, float longitude, out float projectedLatitude, out float projectedLongitude, out float projectedDistanceFromFirst, out int projectedShapeIndex, out float distanceToProjected)
Parameters
|
GeometricGraph
graph
|
|
GeometricEdge
edge
|
|
System.Single
latitude
|
|
System.Single
longitude
|
|
System.Single
projectedLatitude
|
|
System.Single
projectedLongitude
|
|
System.Single
projectedDistanceFromFirst
|
|
System.Int32
projectedShapeIndex
|
|
System.Single
distanceToProjected
|
Returns
|
System.Boolean
|
ProjectOn(GeometricGraph, GeometricEdge, Single, Single, out Single, out Single, out Single, out Int32, out Single, out Single)
Projects a point onto an edge.
Declaration
public static bool ProjectOn(this GeometricGraph graph, GeometricEdge edge, float latitude, float longitude, out float projectedLatitude, out float projectedLongitude, out float projectedDistanceFromFirst, out int projectedShapeIndex, out float distanceToProjected, out float totalLength)
Parameters
|
GeometricGraph
graph
|
|
GeometricEdge
edge
|
|
System.Single
latitude
|
|
System.Single
longitude
|
|
System.Single
projectedLatitude
|
|
System.Single
projectedLongitude
|
|
System.Single
projectedDistanceFromFirst
|
|
System.Int32
projectedShapeIndex
|
|
System.Single
distanceToProjected
|
|
System.Single
totalLength
|
Returns
|
System.Boolean
|