Click or drag to resize

SpatialExtensions.CalculateLeftRightCoordinatesFromDistances 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.Geometry.Coordinate
Point/origin to calculate new points from
directionVector
Type: DHI.Mike1D.Generic.Spatial.Geometry.Vector
Direction
leftDistance
Type: System.Double
Distance to left coordinate
rightDistance
Type: System.Double
Distance to right coordinate
leftCoordinate
Type: DHI.Mike1D.Generic.Spatial.Geometry.Coordinate
Left coordinate output
rightCoordinate
Type: DHI.Mike1D.Generic.Spatial.Geometry.Coordinate
Right coordinate output
See Also