API Reference > OdDg Classes > OdDgRasterAttachmentHeader Class > OdDgRasterAttachmentHeader Methods > OdDgRasterAttachmentHeader::getOrientation Method
OdDgRasterAttachmentHeader::getOrientation Method
Syntax
C++
void getOrientation(OdGePoint3d& origin, OdGeVector3d& uVector, OdGeVector3d& vVector) const;

These U & V vectors determine either scale factors (for each U&V axis of a raster) and its rotation. If the vectors are not perpendicular, then the raster has a bias. The lengths of vectors determine the height & weight of one pixel. Therefore, the resulting image is the tetragon with points:

  1. origin
  2. origin + uVector * [X of the image resolution]
  3. origin + uVector * [X of the image resolution] + vVector * [Y of the image resolution]
  4. origin + vVector * [Y of the image resolution]
Copyright © 2002–2021. Open Design Alliance. All rights reserved.