DHI.Mike1D
DHI.Mike1D
Namespaces
DHI.Mike1D.Generic.Spatial
SpatialExtensions Class
SpatialExtensions Methods
AsCoordinate Method
CalculateLeftRightCoordinatesFromDistances Method
CastToList Method
CreateUnitVector Method
DirectionUnitVector Method
DirectionUnitVectorSmooth Method
DistanceSqXY Method
DistanceXY Method
Interpolate Method
LocateAlong Method
ValidateIncreasingM Method
SpatialExtensions
CreateUnitVector 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#
Copy
public
static
Vector
CreateUnitVector
(
ICoordinate
p1
,
ICoordinate
p2
)
Parameters
p1
Type:
DHI.Mike1D.Generic.Spatial.Geometry
ICoordinate
First point
p2
Type:
DHI.Mike1D.Generic.Spatial.Geometry
ICoordinate
Second point
Return Value
Type:
Vector
Unit vector pointing at second point
See Also
Reference
SpatialExtensions Class
DHI.Mike1D.Generic.Spatial Namespace