OEGeom2DTranslateΒΆ

template<class T, class U>
void OEGeom2DTranslate(T *xyz, const U *t, unsigned int ncoord)

Translates the two dimensional coordinates by the vector passed as the argument t. The vector t must be of size two and contain the Cartesian translation vectors. For ncoord sets of coordinates the input array xyz is expected to have a length of \(2*ncoord\).

xyz
Array of coordinates to translate
t
Translation vector array
ncoord
Number of coordinate sets