Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGLibartBPathBuilder.cpp File Reference
#include "nsCOMPtr.h"
#include "nsISVGRendererPathBuilder.h"
#include "nsSVGLibartBPathBuilder.h"
#include <math.h>

Go to the source code of this file.


class  nsSVGLibartBPathBuilder
 Libart path builder implementation. More...


nsresult NS_NewSVGLibartBPathBuilder (nsISVGRendererPathBuilder **result, ArtBpath **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 167 of file nsSVGLibartBPathBuilder.cpp.

  double ta = atan2(uy, ux);
       double tb = atan2(vy, vx);
       if (tb >= ta)
              return tb-ta;
       return 6.28318530718 - (ta-tb);
nsresult NS_NewSVGLibartBPathBuilder ( nsISVGRendererPathBuilder **  result,
ArtBpath **  dest 

Definition at line 92 of file nsSVGLibartBPathBuilder.cpp.

  *result = new nsSVGLibartBPathBuilder(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: