Click or drag to resize

SpatialExtensionsCreateUnitVector Method

Creates a unit vector pointing from p1 to p2

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 CreateUnitVector(
	ICoordinate p1,
	ICoordinate p2
)

Parameters

p1
Type: DHI.Mike1D.Generic.Spatial.GeometryICoordinate
First point
p2
Type: DHI.Mike1D.Generic.Spatial.GeometryICoordinate
Second point

Return Value

Type: Vector
Unit vector pointing at second point
See Also