summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs/mcvmath.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/dialogs/mcvmath.cxx')
-rw-r--r--svtools/source/dialogs/mcvmath.cxx78
1 files changed, 0 insertions, 78 deletions
diff --git a/svtools/source/dialogs/mcvmath.cxx b/svtools/source/dialogs/mcvmath.cxx
index 4dcfbd519aa8..f34737b8a4f0 100644
--- a/svtools/source/dialogs/mcvmath.cxx
+++ b/svtools/source/dialogs/mcvmath.cxx
@@ -129,82 +129,4 @@ FixCpx ImpExPI( sal_uInt16 nPhi )
return aIter;
}
-/**************************************************************************
-|*
-|* ImpATanx2()
-|*
-|* Beschreibung ATANX2-Funktion fuer FixPoint-Berechnungen
-|*
-**************************************************************************/
-
-// use for x*x+y*y==1 only
-
-static sal_uInt16 ImpATanx2( const Fix& rX, const Fix& rY )
-{
- sal_uInt16 phi0 = 0; // result angel higher part
- sal_uInt16 phi = 0; // dito lower part
- long x = rX.x;
- long y = rY.x;
- long z;
- const char Sft=14-FIX_POST;
- short i;
- FixCpx aTry;
- FixCpx aInc;
- FixCpx aIter(1L);
- sal_Bool Small = sal_False;
-
- if ( (x==0) && (y==0) )
- return 0;
-
- if ( y < 0)
- {
- // reduce 3. to 1. quadrant (0..90 Degree)
- phi0 += 180L * 65536L / 360L;
- // turn 180 degree
- y *= -1;
- x *= -1;
- }
-
- if ( x < 0)
- {
- // 2. to 1. q.
- phi0 += 90L * 65536L / 360L;
- // turn 90 degree clockwise
- z = y;
- y = -x;
- x = z;
- }
-
- for ( i = 13; i >= 0; i-- )
- {
- aInc.r.x = CosTab[i]>>Sft; // e**(i(phi1+phi2)) =
- aInc.i.x = SinTab[i]>>Sft; // e**(i*phi1)) * e**(i*phi2))
- aTry = aIter*aInc;
-
- if ( Small )
- {
- // is try ok
- if ( aTry.r.x >= x )
- {
- aIter = aTry;
- phi += (1<<i);
- }
- }
- else
- {
- // is try ok
- if ( aTry.i.x <= y )
- {
- aIter = aTry;
- phi += (1<<i);
-
- if ( i > 11 )
- Small=sal_True;
- }
- }
- }
-
- return phi0+phi;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */