Browse Source

Adding failed arc test

This test implements a case where the current arc calculations fail
pull/16/head
Seth Hillbrand 5 years ago
parent
commit
69d75b90b1
  1. 38
      qa/libs/kimath/geometry/test_shape_arc.cpp

38
qa/libs/kimath/geometry/test_shape_arc.cpp

@ -173,6 +173,44 @@ struct ARC_CPA_CASE
};
static const std::vector<ARC_CPA_CASE> arc_cases = {
{
"C(0,0) 114 + 360 degree",
{
{ 0, 0 },
{ -306451, 687368 },
360,
},
0,
{
{ 0, 0 },
{ -306451, 687368 },
{ -306451, 687368 },
360,
113.95929,
113.95929,
752587,
{ { -752587, -752587 }, { 1505174, 1505174 } },
},
},
{
"C(0,0) 180 + 360 degree",
{
{ 0, 0 },
{ -100, 0 },
360,
},
0,
{
{ 0, 0 },
{ -100, 0 },
{ -100, 0 },
360,
180,
180,
100,
{ { -100, -100 }, { 200, 200 } },
},
},
{
"C(0,0) 180 + 90 degree",
{

Loading…
Cancel
Save