Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Variables
PathOpsQuadIntersectionTestData.cpp File Reference
#include "tests/PathOpsQuadIntersectionTestData.h"
#include <array>
#include <cfloat>

Go to the source code of this file.

Variables

const QuadPts quadraticPoints []
 
const size_t quadraticPoints_count = std::size(quadraticPoints)
 
const QuadPts quadraticLines []
 
const size_t quadraticLines_count = std::size(quadraticLines)
 
static const double F = FLT_EPSILON * 32
 
static const double H = FLT_EPSILON * 32
 
static const double J = FLT_EPSILON * 32
 
static const double K = FLT_EPSILON * 32
 
const QuadPts quadraticModEpsilonLines []
 
const size_t quadraticModEpsilonLines_count
 
const QuadPts quadraticTests [][2]
 
const size_t quadraticTests_count = std::size(quadraticTests)
 

Variable Documentation

◆ F

const double F = FLT_EPSILON * 32
static

Definition at line 50 of file PathOpsQuadIntersectionTestData.cpp.

◆ H

const double H = FLT_EPSILON * 32
static

Definition at line 51 of file PathOpsQuadIntersectionTestData.cpp.

◆ J

const double J = FLT_EPSILON * 32
static

Definition at line 52 of file PathOpsQuadIntersectionTestData.cpp.

◆ K

const double K = FLT_EPSILON * 32
static

Definition at line 53 of file PathOpsQuadIntersectionTestData.cpp.

◆ quadraticLines

const QuadPts quadraticLines[]
Initial value:
= {
{{{0, 0}, {0, 0}, {1, 0}}},
{{{1, 0}, {0, 0}, {0, 0}}},
{{{1, 0}, {2, 0}, {3, 0}}},
{{{0, 0}, {0, 0}, {0, 1}}},
{{{0, 1}, {0, 0}, {0, 0}}},
{{{0, 1}, {0, 2}, {0, 3}}},
{{{0, 0}, {0, 0}, {1, 1}}},
{{{1, 1}, {0, 0}, {0, 0}}},
{{{1, 1}, {2, 2}, {3, 3}}},
{{{1, 1}, {3, 3}, {3, 3}}},
{{{1, 1}, {1, 1}, {2, 2}}},
{{{1, 1}, {1, 1}, {3, 3}}},
{{{1, 1}, {2, 2}, {4, 4}}},
{{{1, 1}, {3, 3}, {4, 4}}},
{{{1, 1}, {3, 3}, {2, 2}}},
{{{1, 1}, {4, 4}, {2, 2}}},
{{{1, 1}, {4, 4}, {3, 3}}},
{{{2, 2}, {1, 1}, {3, 3}}},
{{{2, 2}, {1, 1}, {4, 4}}},
{{{2, 2}, {3, 3}, {1, 1}}},
{{{2, 2}, {3, 3}, {4, 4}}},
{{{2, 2}, {4, 4}, {1, 1}}},
{{{2, 2}, {4, 4}, {3, 3}}},
}

Definition at line 22 of file PathOpsQuadIntersectionTestData.cpp.

22 {
23 {{{0, 0}, {0, 0}, {1, 0}}},
24 {{{1, 0}, {0, 0}, {0, 0}}},
25 {{{1, 0}, {2, 0}, {3, 0}}},
26 {{{0, 0}, {0, 0}, {0, 1}}},
27 {{{0, 1}, {0, 0}, {0, 0}}},
28 {{{0, 1}, {0, 2}, {0, 3}}},
29 {{{0, 0}, {0, 0}, {1, 1}}},
30 {{{1, 1}, {0, 0}, {0, 0}}},
31 {{{1, 1}, {2, 2}, {3, 3}}},
32 {{{1, 1}, {3, 3}, {3, 3}}},
33 {{{1, 1}, {1, 1}, {2, 2}}},
34 {{{1, 1}, {1, 1}, {3, 3}}},
35 {{{1, 1}, {2, 2}, {4, 4}}}, // no coincident
36 {{{1, 1}, {3, 3}, {4, 4}}},
37 {{{1, 1}, {3, 3}, {2, 2}}},
38 {{{1, 1}, {4, 4}, {2, 2}}},
39 {{{1, 1}, {4, 4}, {3, 3}}},
40 {{{2, 2}, {1, 1}, {3, 3}}},
41 {{{2, 2}, {1, 1}, {4, 4}}},
42 {{{2, 2}, {3, 3}, {1, 1}}},
43 {{{2, 2}, {3, 3}, {4, 4}}},
44 {{{2, 2}, {4, 4}, {1, 1}}},
45 {{{2, 2}, {4, 4}, {3, 3}}},
46};

◆ quadraticLines_count

const size_t quadraticLines_count = std::size(quadraticLines)

Definition at line 48 of file PathOpsQuadIntersectionTestData.cpp.

◆ quadraticModEpsilonLines

const QuadPts quadraticModEpsilonLines[]
Initial value:
= {
{{{0, F}, {0, 0}, {1, 0}}},
{{{0, 0}, {1, 0}, {0, F}}},
{{{1, 0}, {0, F}, {0, 0}}},
{{{1, H}, {2, 0}, {3, 0}}},
{{{0, F}, {0, 0}, {1, 1}}},
{{{0, 0}, {1, 1}, {F, 0}}},
{{{1, 1}, {F, 0}, {0, 0}}},
{{{1, 1+J}, {2, 2}, {3, 3}}},
{{{1, 1}, {3, 3}, {3+F, 3}}},
{{{1, 1}, {1+F, 1}, {2, 2}}},
{{{1, 1}, {2, 2}, {1, 1+K}}},
{{{1, 1}, {1, 1+F}, {3, 3}}},
{{{1+H, 1}, {2, 2}, {4, 4}}},
{{{1, 1+K}, {3, 3}, {4, 4}}},
{{{1, 1}, {3+F, 3}, {2, 2}}},
{{{1, 1}, {4, 4+F}, {2, 2}}},
{{{1, 1}, {4, 4}, {3+F, 3}}},
{{{2, 2}, {1, 1}, {3, 3+F}}},
{{{2+F, 2}, {1, 1}, {4, 4}}},
{{{2, 2+F}, {3, 3}, {1, 1}}},
{{{2, 2}, {3+F, 3}, {4, 4}}},
{{{2, 2}, {4, 4+F}, {1, 1}}},
{{{2, 2}, {4, 4}, {3+F, 3}}},
}
static const double F
static const double J
static const double K
static const double H
Definition SkMD5.cpp:120
Definition SkMD5.cpp:130

Definition at line 55 of file PathOpsQuadIntersectionTestData.cpp.

55 {
56 {{{0, F}, {0, 0}, {1, 0}}},
57 {{{0, 0}, {1, 0}, {0, F}}},
58 {{{1, 0}, {0, F}, {0, 0}}},
59 {{{1, H}, {2, 0}, {3, 0}}},
60// {{{F, 0}, {0, 0}, {0, 1}}}, // INVESTIGATE: even substituting K for F, quad is still linear.
61// {{{0, 0}, {0, 1}, {F, 0}}},
62// {{{0, 1}, {F, 0}, {0, 0}}},
63// {{{H, 1}, {0, 2}, {0, 3}}},
64 {{{0, F}, {0, 0}, {1, 1}}},
65 {{{0, 0}, {1, 1}, {F, 0}}},
66 {{{1, 1}, {F, 0}, {0, 0}}},
67 {{{1, 1+J}, {2, 2}, {3, 3}}},
68 {{{1, 1}, {3, 3}, {3+F, 3}}},
69 {{{1, 1}, {1+F, 1}, {2, 2}}},
70 {{{1, 1}, {2, 2}, {1, 1+K}}},
71 {{{1, 1}, {1, 1+F}, {3, 3}}},
72 {{{1+H, 1}, {2, 2}, {4, 4}}}, // no coincident
73 {{{1, 1+K}, {3, 3}, {4, 4}}},
74 {{{1, 1}, {3+F, 3}, {2, 2}}},
75 {{{1, 1}, {4, 4+F}, {2, 2}}},
76 {{{1, 1}, {4, 4}, {3+F, 3}}},
77 {{{2, 2}, {1, 1}, {3, 3+F}}},
78 {{{2+F, 2}, {1, 1}, {4, 4}}},
79 {{{2, 2+F}, {3, 3}, {1, 1}}},
80 {{{2, 2}, {3+F, 3}, {4, 4}}},
81 {{{2, 2}, {4, 4+F}, {1, 1}}},
82 {{{2, 2}, {4, 4}, {3+F, 3}}},
83};

◆ quadraticModEpsilonLines_count

const size_t quadraticModEpsilonLines_count
Initial value:
=
const QuadPts quadraticModEpsilonLines[]

Definition at line 85 of file PathOpsQuadIntersectionTestData.cpp.

◆ quadraticPoints

const QuadPts quadraticPoints[]
Initial value:
= {
{{{0, 0}, {1, 0}, {0, 0}}},
{{{0, 0}, {0, 1}, {0, 0}}},
{{{0, 0}, {1, 1}, {0, 0}}},
{{{1, 1}, {2, 2}, {1, 1}}},
}

Definition at line 13 of file PathOpsQuadIntersectionTestData.cpp.

13 {
14 {{{0, 0}, {1, 0}, {0, 0}}},
15 {{{0, 0}, {0, 1}, {0, 0}}},
16 {{{0, 0}, {1, 1}, {0, 0}}},
17 {{{1, 1}, {2, 2}, {1, 1}}},
18};

◆ quadraticPoints_count

const size_t quadraticPoints_count = std::size(quadraticPoints)

Definition at line 20 of file PathOpsQuadIntersectionTestData.cpp.

◆ quadraticTests

const QuadPts quadraticTests[][2]
Initial value:
= {
{
{{{0, 0},
{0, 1},
{1, 1}}},
{{{0, 1},
{0, 0},
{1, 0}}}
},
{
{{{1, 0},
{2, 6},
{3, 0}}},
{{{0, 1},
{6, 2},
{0, 3}}}
}
}

Definition at line 88 of file PathOpsQuadIntersectionTestData.cpp.

88 {
89 { // one intersection
90 {{{0, 0},
91 {0, 1},
92 {1, 1}}},
93 {{{0, 1},
94 {0, 0},
95 {1, 0}}}
96 },
97 { // four intersections
98 {{{1, 0},
99 {2, 6},
100 {3, 0}}},
101 {{{0, 1},
102 {6, 2},
103 {0, 3}}}
104 }
105};

◆ quadraticTests_count

const size_t quadraticTests_count = std::size(quadraticTests)

Definition at line 107 of file PathOpsQuadIntersectionTestData.cpp.