API Reference > FacetModeler Namespace > Classes > Segment2D Class > Segment2D Methods > Segment2D::shift Method
Segment2D::shift Method
Syntax
C++
Result shift(const double dAngle, const double dShiftDist);
Parameters 
Description 
const double dAngle 
[in] Shear direction angle.  
const double dShiftDist 
[in] Shear distance.  

eOk if the shift succeeded, or a corresponding error type otherwise.

Shifts the segment in the direction specified by the angle and distance. 

 

Copyright © 2002-2020. Open Design Alliance. All rights reserved.