Click or drag to resize

SpatialExtensionsCalculateLeftRightCoordinatesFromDistances Method

From the point and using the direction unit vector, create two points left ad right of of the point in the given distance from the point.

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 void CalculateLeftRightCoordinatesFromDistances(
	Coordinate point,
	Vector directionVector,
	double leftDistance,
	double rightDistance,
	out Coordinate leftCoordinate,
	out Coordinate rightCoordinate
)

Parameters

point
Type: DHI.Mike1D.Generic.Spatial.GeometryCoordinate
Point/origin to calculate new points from
directionVector
Type: DHI.Mike1D.Generic.Spatial.GeometryVector
Direction
leftDistance
Type: SystemDouble
Distance to left coordinate
rightDistance
Type: SystemDouble
Distance to right coordinate
leftCoordinate
Type: DHI.Mike1D.Generic.Spatial.GeometryCoordinate
Left coordinate output
rightCoordinate
Type: DHI.Mike1D.Generic.Spatial.GeometryCoordinate
Right coordinate output
See Also