DG Kernel Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > API Reference > General Geometry > Curves > 2D > ILine2D Search Documentation


ILine2D Interface

GetEnd
SetEnd

The interface is implemented by 2D Arcs and straight lines

See also Patchwork sampleInterface List


HRESULT GetEnd(int end, double* x, double* y)

Parameters

end - [in] End to retrieve. 0 - the first end, 1 - the second end.

x, y - [out] returned coordinates of the end

Remarks:

The method returns ends of the line.


HRESULT SetEnd(int end, double x, double y)

Parameters

end - [in] End to modify. 0 - the first end, 1 - the second end.

x, y - [in] new coordinates of the end

Remarks:

The method modifies ends of the line.