Click or drag to resize

CoordinateTransformConvertFromLocalSystem Method (Coordinate, Vector, ICoordinate)

Converting the coordinate from the local coordinate system to the global one, where the local system is defined by the provided origin and x-axis vector.

It is assumed that the y-axis is in counter-clockwise direction to x

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 Coordinate ConvertFromLocalSystem(
	Coordinate origin,
	Vector xAxisUnitVector,
	ICoordinate coord
)

Parameters

origin
Type: DHI.Mike1D.Generic.Spatial.GeometryCoordinate
Origin of local coordinate system
xAxisUnitVector
Type: DHI.Mike1D.Generic.Spatial.GeometryVector
X-axis vector of local coordinate system
coord
Type: DHI.Mike1D.Generic.Spatial.GeometryICoordinate
Local coordinate to convert

Return Value

Type: Coordinate
New coordinate in global coordinate system
See Also