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: 19.0.0.0 (11.1.1.1111)
Syntax
public static Vector DirectionUnitVector(
	this EngineReach reach,
	GridPoint gridPoint
)

Parameters

reach
Type: DHI.Mike1D.EngineEngineReach

[Missing <param name="reach"/> documentation for "M:DHI.Mike1D.Engine.EngineExtensions.DirectionUnitVector(DHI.Mike1D.Engine.EngineReach,DHI.Mike1D.Engine.GridPoint)"]

gridPoint
Type: DHI.Mike1D.EngineGridPoint

[Missing <param name="gridPoint"/> documentation for "M:DHI.Mike1D.Engine.EngineExtensions.DirectionUnitVector(DHI.Mike1D.Engine.EngineReach,DHI.Mike1D.Engine.GridPoint)"]

Return Value

Type: Vector

[Missing <returns> documentation for "M:DHI.Mike1D.Engine.EngineExtensions.DirectionUnitVector(DHI.Mike1D.Engine.EngineReach,DHI.Mike1D.Engine.GridPoint)"]

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