Click or drag to resize

EngineExtensionsDirectionUnitVector Method

Calculates the direction vector of the reach at the given gridpoint, as the average from the last to the next gridpoint.

Namespace:  DHI.Mike1D.Engine
Assembly:  DHI.Mike1D.Engine (in DHI.Mike1D.Engine.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public static Vector DirectionUnitVector(
	this EngineReach reach,
	GridPoint gridPoint
)

Parameters

reach
Type: DHI.Mike1D.EngineEngineReach
gridPoint
Type: DHI.Mike1D.EngineGridPoint

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 EngineReach. 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