|
58 | 58 | recipe_test(circle,
|
59 | 59 | [1.0, 0.0, -1.0, 0.0], [0.0, 1.0, 0.0, -1.0])
|
60 | 60 | recipe_test(Sets.polar(circle),
|
61 |
| - [-1.0, 1.0, 1.0, -1.0, -1.0], [1.0, 1.0, -1.0, -1.0, 1.0]) |
| 61 | + [-1.0, -1.0, 1.0, 1.0, -1.0], |
| 62 | + [-1.0, 1.0, 1.0, -1.0, -1.0]) |
62 | 63 | end
|
63 | 64 | @testset "Scaled circle" begin
|
64 | 65 | p = SetProg.GramMatrix{Float64}((i, j) -> 2convert(Float64, i == j),
|
|
67 | 68 | recipe_test(circle,
|
68 | 69 | [1/√2, 0.0, -1/√2, 0.0], [0.0, 1/√2, 0.0, -1/√2])
|
69 | 70 | recipe_test(Sets.polar(circle),
|
70 |
| - [-√2, √2, √2, -√2, -√2], |
71 |
| - [ √2, √2, -√2, -√2, √2]) |
| 71 | + [-√2, -√2, √2, √2, -√2], |
| 72 | + [-√2, √2, √2, -√2, -√2]) |
72 | 73 | end
|
73 | 74 | @testset "Non-homogeneous Circle" begin
|
74 | 75 | @testset "Basic" begin
|
|
77 | 78 | 0 0 1], monovec([z, x, y]))
|
78 | 79 | shifted_circle = SetProg.perspective_dual_polyset(2, q, SetProg.InteriorPoint(zeros(2)), z, [x, y])
|
79 | 80 | recipe_test(shifted_circle,
|
80 |
| - [-1.0, 1.0, 1.0, -1.0, -1.0], |
81 |
| - [1.0, 1.0, -1.0, -1.0, 1.0]) |
| 81 | + [-1.0, -1.0, 1.0, 1.0, -1.0], |
| 82 | + [-1.0, 1.0, 1.0, -1.0, -1.0]) |
82 | 83 | end
|
83 | 84 | @testset "Scaled" begin
|
84 | 85 | q = SetProg.GramMatrix(Float64[0 0 0
|
85 | 86 | 0 2 0
|
86 | 87 | 0 0 2], monovec([z, x, y]))
|
87 | 88 | shifted_circle = SetProg.perspective_dual_polyset(2, q, SetProg.InteriorPoint(zeros(2)), z, [x, y])
|
88 | 89 | recipe_test(shifted_circle,
|
89 |
| - [-√2, √2, √2, -√2, -√2], |
90 |
| - [ √2, √2, -√2, -√2, √2]) |
| 90 | + [-√2, -√2, √2, √2, -√2], |
| 91 | + [-√2, √2, √2, -√2, -√2]) |
91 | 92 | end
|
92 | 93 | @testset "z-Scaled" begin
|
93 | 94 | # z: -1/2 + 1 = 1/2
|
|
96 | 97 | 0 0 1], monovec([z, x, y]))
|
97 | 98 | shifted_circle = SetProg.perspective_dual_polyset(2, q, SetProg.InteriorPoint(zeros(2)), z, [x, y])
|
98 | 99 | recipe_test(shifted_circle,
|
99 |
| - [-√2, √2, √2, -√2, -√2], |
100 |
| - [ √2, √2, -√2, -√2, √2]) |
| 100 | + [-√2, -√2, √2, √2, -√2], |
| 101 | + [-√2, √2, √2, -√2, -√2]) |
101 | 102 | end
|
102 | 103 | end
|
103 | 104 | end
|
|
129 | 130 | β = 0.732050807568877
|
130 | 131 | recipe_test(
|
131 | 132 | Sets.polar(set),
|
132 |
| - [-1.0, -α, 0.0, 1.0, 1.0, β, -1.0, -1.0], |
133 |
| - [α, 1.0, 1.0, 0.0, -β, -1.0, -1.0, α], 8) |
| 133 | + [-1.0, -1.0, -α, 0.0, 1.0, 1.0, β, -1.0], |
| 134 | + [-1.0, α, 1.0, 1.0, 0.0, -β, -1.0, -1.0], |
| 135 | + 8) |
134 | 136 | end
|
135 | 137 | end
|
0 commit comments