Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGGDIPlusPathBuilder.cpp File Reference
#include <windows.h>
#include <unknwn.h>
#include <Gdiplus.h>
#include "nsCOMPtr.h"
#include "nsISVGPathGeometrySource.h"
#include "nsISVGRendererPathBuilder.h"
#include <math.h>

Go to the source code of this file.


class  PointStack
 Helper class used by nsSVGGDIPlusPathBuilder. More...
struct  PointStack::PointData
class  nsSVGGDIPlusPathBuilder
 GDI+ path builder implementation. More...


nsresult NS_NewSVGGDIPlusPathBuilder (nsISVGRendererPathBuilder **result, nsISVGPathGeometrySource *src, GraphicsPath *dest)
static double CalcVectorAngle (double ux, double uy, double vx, double vy)

Function Documentation

static double CalcVectorAngle ( double  ux,
double  uy,
double  vx,
double  vy 
) [inline, static]

Definition at line 235 of file nsSVGGDIPlusPathBuilder.cpp.

  double ta = atan2(uy, ux);
       double tb = atan2(vy, vx);
       if (tb >= ta)
              return tb-ta;
       return 6.28318530718 - (ta-tb);

Definition at line 174 of file nsSVGGDIPlusPathBuilder.cpp.

  *result = new nsSVGGDIPlusPathBuilder(src, dest);
  if (!result) return NS_ERROR_OUT_OF_MEMORY;


  return NS_OK;

Here is the call graph for this function:

Here is the caller graph for this function: