NPAL 12483 Translate an object given a vector and a length

This commit is contained in:
dmv 2008-03-12 16:27:35 +00:00
parent bc48fafff3
commit 1749a765c0
2 changed files with 18 additions and 0 deletions

View File

@ -474,6 +474,20 @@ module GEOM
GEOM_Object TranslateVectorCopy (in GEOM_Object theObject, GEOM_Object TranslateVectorCopy (in GEOM_Object theObject,
in GEOM_Object theVector); in GEOM_Object theVector);
/*!
* Translate the given object along the given vector on given distance,
* creating its copy before the translation.
* \param theObject The object to be translated.
* \param theVector Translation vector, giving a direction.
* \param theDistance Translation distance, giving a distance.
* \param theCope Translation copy, creating its copy if true.
* \return New GEOM_Object, containing the translated object.
*/
GEOM_Object TranslateVectorDistance (in GEOM_Object theObject,
in GEOM_Object theVector,
in double theDistance,
in boolean theCopy);
/*! /*!
* Translate the given object along the given vector a given number times * Translate the given object along the given vector a given number times
* \param theObject The object to be translated. * \param theObject The object to be translated.

View File

@ -249,6 +249,10 @@ module GEOM
in GEOM_Object theVector) ; in GEOM_Object theVector) ;
GEOM_Object TranslateVectorCopy (in GEOM_Object theObject, GEOM_Object TranslateVectorCopy (in GEOM_Object theObject,
in GEOM_Object theVector) ; in GEOM_Object theVector) ;
GEOM_Object TranslateVectorDistance (in GEOM_Object theObject,
in GEOM_Object theVector,
in double theDistance,
in boolean theCopy) ;
GEOM_Object MultiTranslate1D (in GEOM_Object theObject, GEOM_Object MultiTranslate1D (in GEOM_Object theObject,
in GEOM_Object theVector, in GEOM_Object theVector,
in double theStep, in double theStep,