Click or drag to resize

CoordinateTransformConvertToLocalSystem Method (Coordinate, Vector, ICoordinate)

Converting the coordinate from the global coordinate system to the local one, with 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 ConvertToLocalSystem(
	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
Global coordinate to convert

Return Value

Type: Coordinate
New coordinate in local coordinate system
See Also