Click or drag to resize

SpatialExtensionsDirectionUnitVectorSmooth Method

Finds the local reach direction as the direction from the locally surrounding digi points. The vector returned is a unit vector.

This returns a smoothly varying unit vector: On the center of the line between two digipoints, the direction of the line is returned. On a digipoint the average of the line before and after the digipoint is returned. In between the center of the line and the digipoint the direction varies linearly.

Namespace:  DHI.Mike1D.Generic.Spatial
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public static Vector DirectionUnitVectorSmooth(
	this ICoordinateSequence coordinates,
	double chainage
)

Parameters

coordinates
Type: DHI.Mike1D.Generic.Spatial.GeometryICoordinateSequence
chainage
Type: SystemDouble

Return Value

Type: Vector

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICoordinateSequence. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also