Back to index

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

Go to the source code of this file.


class  nsSVGCairoPathBuilder
 Libart path builder implementation. More...


nsresult NS_NewSVGCairoPathBuilder (nsISVGRendererPathBuilder **result, cairo_t *ctx)
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 138 of file nsSVGCairoPathBuilder.cpp.

  double ta = atan2(uy, ux);
  double tb = atan2(vy, vx);
  if (tb >= ta)
    return tb-ta;
  return 6.28318530718 - (ta-tb);
nsresult NS_NewSVGCairoPathBuilder ( nsISVGRendererPathBuilder **  result,
cairo_t *  ctx 

Definition at line 87 of file nsSVGCairoPathBuilder.cpp.

  *result = new nsSVGCairoPathBuilder(ctx);
  if (!*result)

  return NS_OK;

Here is the call graph for this function:

Here is the caller graph for this function: