if ( myX2 > myMaxX ) myMaxX = myX2;
if ( myY2 > myMaxY ) myMaxY = myY2;
- Standard_Real ArrAngle = PI/180.* anArrAngle, theAngle;
+ Standard_Real ArrAngle = M_PI/180.* anArrAngle, theAngle;
gp_Pnt2d theOrigine( 0., 0. ), P1, P2, P3;
gp_Vec2d VX( 1., 0. ), VDir;
gp_Vec2d VX( 1., 0. ), theVec(thePnt2, thePnt1);
Standard_Real theTxtAngle = VX.Angle( theVec );
gp_Pnt2d pntText;
- if ( theTxtAngle >= 0 && theTxtAngle <= PI/2 )
+ if ( theTxtAngle >= 0 && theTxtAngle <= M_PI/2 )
pntText = thePnt2.Translated( (myArrowLen+d1)*theVec/(thePnt1.Distance(thePnt2)) );
- else if ( theTxtAngle > PI/2 && theTxtAngle <= PI ) {
+ else if ( theTxtAngle > M_PI/2 && theTxtAngle <= M_PI ) {
pntText = thePnt1.Translated( (myArrowLen+d1)*theVec.Reversed()/(thePnt1.Distance(thePnt2)) );
theTxtAngle = VX.Angle( theVec.Reversed() );
- } else if ( theTxtAngle >= -PI/2 && theTxtAngle < 0 )
+ } else if ( theTxtAngle >= -M_PI/2 && theTxtAngle < 0 )
pntText = thePnt2.Translated( (myArrowLen+d1)*theVec/(thePnt1.Distance(thePnt2)) );
- else if ( theTxtAngle >= -PI && theTxtAngle < -PI/2 ) {
+ else if ( theTxtAngle >= -M_PI && theTxtAngle < -M_PI/2 ) {
pntText = thePnt1.Translated( (myArrowLen+d1)*theVec.Reversed()/(thePnt1.Distance(thePnt2)) );
theTxtAngle = VX.Angle( theVec.Reversed() );
}
gp_Vec2d VX( 1., 0. ), theVec(thePnt2, thePnt1);
Standard_Real theTxtAngle = VX.Angle( theVec );
gp_Pnt2d pntText;
- if ( theTxtAngle >= 0 && theTxtAngle <= PI/2 )
+ if ( theTxtAngle >= 0 && theTxtAngle <= M_PI/2 )
pntText = thePnt2.Translated( (myArrowLen+d1)*theVec/(thePnt1.Distance(thePnt2)) );
- else if ( theTxtAngle > PI/2 && theTxtAngle <= PI ) {
+ else if ( theTxtAngle > M_PI/2 && theTxtAngle <= M_PI ) {
pntText = thePnt1.Translated( (myArrowLen+d1)*theVec.Reversed()/(thePnt1.Distance(thePnt2)) );
theTxtAngle = VX.Angle( theVec.Reversed() );
- } else if ( theTxtAngle >= -PI/2 && theTxtAngle < 0 )
+ } else if ( theTxtAngle >= -M_PI/2 && theTxtAngle < 0 )
pntText = thePnt2.Translated( (myArrowLen+d1)*theVec/(thePnt1.Distance(thePnt2)) );
- else if ( theTxtAngle >= -PI && theTxtAngle < -PI/2 ) {
+ else if ( theTxtAngle >= -M_PI && theTxtAngle < -M_PI/2 ) {
pntText = thePnt1.Translated( (myArrowLen+d1)*theVec.Reversed()/(thePnt1.Distance(thePnt2)) );
theTxtAngle = VX.Angle( theVec.Reversed() );
}
gp_Vec2d VX( 1., 0. ), theVec(thePnt2, thePnt1);
Standard_Real theTxtAngle = VX.Angle( theVec );
gp_Pnt2d pntText;
- if ( theTxtAngle >= 0 && theTxtAngle <= PI/2 )
+ if ( theTxtAngle >= 0 && theTxtAngle <= M_PI/2 )
pntText = thePnt2.Translated( (myArrowLen+d1)*theVec/(thePnt1.Distance(thePnt2)) );
- else if ( theTxtAngle > PI/2 && theTxtAngle <= PI ) {
+ else if ( theTxtAngle > M_PI/2 && theTxtAngle <= M_PI ) {
pntText = thePnt1.Translated( (myArrowLen+d1)*theVec.Reversed()/(thePnt1.Distance(thePnt2)) );
theTxtAngle = VX.Angle( theVec.Reversed() );
- } else if ( theTxtAngle >= -PI/2 && theTxtAngle < 0 )
+ } else if ( theTxtAngle >= -M_PI/2 && theTxtAngle < 0 )
pntText = thePnt2.Translated( (myArrowLen+d1)*theVec/(thePnt1.Distance(thePnt2)) );
- else if ( theTxtAngle >= -PI && theTxtAngle < -PI/2 ) {
+ else if ( theTxtAngle >= -M_PI && theTxtAngle < -M_PI/2 ) {
pntText = thePnt1.Translated( (myArrowLen+d1)*theVec.Reversed()/(thePnt1.Distance(thePnt2)) );
theTxtAngle = VX.Angle( theVec.Reversed() );
}