Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Translations
[Primitives]


Detailed Description

Global functions to translate points and primitives.
#include <qgarlib/primitives.H>


Global functions to translate points and primitives

template<class T>
GenPoint< T > qgar::qgTranslatedPoint (const GenPoint< T > &aPt, T aTransX, T aTransY)
 Return the given point translated along X and Y axis.
template<class T>
GenSegment< T > qgar::qgTranslatedSegment (const GenSegment< T > &aSeg, T aTransX, T aTransY)
 Return the given segment translated along X and Y axis.
template<class T>
GenArc< T > qgar::qgTranslatedArc (const GenArc< T > &anArc, T aTransX, T aTransY)
 Return the given arc translated along X and Y axis.
template<class T>
GenPolygon< T > qgar::qgTranslatedPolygon (const GenPolygon< T > &aPolygon, T aTransX, T aTransY)
 Return the given polygon translated along X and Y axis.
template<class T>
GenPolyline< T > qgar::qgTranslatedPolyline (const GenPolyline< T > &aPolyline, T aTransX, T aTransY)
 Return the given polyline translated along X and Y axis.


Function Documentation

template<class T>
GenArc< T > qgar::qgTranslatedArc const GenArc< T > &  anArc,
aTransX,
aTransY
[inline]
 

Return the given arc translated along X and Y axis.

Parameters:
anArc arc to be translated
aTransX X translation factor
aTransY Y translation factor

Definition at line 89 of file _QGAR_translation.TCC.

template<class T>
GenPoint< T > qgar::qgTranslatedPoint const GenPoint< T > &  aPt,
aTransX,
aTransY
[inline]
 

Return the given point translated along X and Y axis.

Parameters:
aPt point to be translated
aTransX X translation factor
aTransY Y translation factor

Definition at line 57 of file _QGAR_translation.TCC.

template<class T>
GenPolygon< T > qgar::qgTranslatedPolygon const GenPolygon< T > &  aPolygon,
aTransX,
aTransY
[inline]
 

Return the given polygon translated along X and Y axis.

Parameters:
aPolygon polygon to be translated
aTransX X translation factor
aTransY Y translation factor

Definition at line 105 of file _QGAR_translation.TCC.

template<class T>
GenPolyline< T > qgar::qgTranslatedPolyline const GenPolyline< T > &  aPolyline,
aTransX,
aTransY
 

Return the given polyline translated along X and Y axis.

Parameters:
aPolyline polyline to be translated
aTransX X translation factor
aTransY Y translation factor

Definition at line 121 of file _QGAR_translation.TCC.

template<class T>
GenSegment< T > qgar::qgTranslatedSegment const GenSegment< T > &  aSeg,
aTransX,
aTransY
[inline]
 

Return the given segment translated along X and Y axis.

Parameters:
aSeg segment to be translated
aTransX X translation factor
aTransY Y translation factor

Definition at line 73 of file _QGAR_translation.TCC.