Flutter Engine
The Flutter Engine
Functions
SkCamera.cpp File Reference
#include "include/utils/SkCamera.h"
#include "include/core/SkCanvas.h"

Go to the source code of this file.

Functions

static SkScalar SkScalarDotDiv (int count, const SkScalar a[], int step_a, const SkScalar b[], int step_b, SkScalar denom)
 

Function Documentation

◆ SkScalarDotDiv()

static SkScalar SkScalarDotDiv ( int  count,
const SkScalar  a[],
int  step_a,
const SkScalar  b[],
int  step_b,
SkScalar  denom 
)
static

Definition at line 10 of file SkCamera.cpp.

12 {
13 SkScalar prod = 0;
14 for (int i = 0; i < count; i++) {
15 prod += a[0] * b[0];
16 a += step_a;
17 b += step_b;
18 }
19 return prod / denom;
20}
int count
Definition: FontMgrTest.cpp:50
float SkScalar
Definition: extension.cpp:12
static bool b
struct MyStruct a[10]