KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_eda_angle.cpp File Reference

Go to the source code of this file.

Classes

struct  EDA_ANGLE_NORMALISE_CASE
 

Functions

 BOOST_AUTO_TEST_CASE (Normalize)
 
 BOOST_AUTO_TEST_CASE (ConstantAngles)
 

Variables

static const std::vector< EDA_ANGLE_NORMALISE_CASEnormalize_cases
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( ConstantAngles  )

◆ BOOST_AUTO_TEST_CASE() [2/2]

Variable Documentation

◆ normalize_cases

const std::vector<EDA_ANGLE_NORMALISE_CASE> normalize_cases
static
Initial value:
=
{
{ 90.0, 90.0, -270.0, 90.0, 90.0, 90.0 },
{ -90.0, 270.0, -90.0, -90.0, -90.0, -90.0 },
{ 135.0, 135.0, -225.0, -45.0, 135.0, 135.0 },
{ -135.0, 225.0, -135.0, 45.0, -135.0, -135.0 },
{ 180.0, 180.0, -180.0, 0.0, 180.0, 180.0 },
{ -180.0, 180.0, -180.0, 0.0, 180.0, -180.0 },
{ 360.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
{ -360.0, 0.0, 0.0, 0.0, 0.0, -360.0 },
{ 390.0, 30.0, -330.0, 30.0, 30.0, 30.0 },
{ -390.0, 330.0, -30.0, -30.0, -30.0, -30.0 },
{ 720.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
{ -720.0, 0.0, 0.0, 0.0, 0.0, -360.0 },
}

Definition at line 45 of file test_eda_angle.cpp.

Referenced by BOOST_AUTO_TEST_CASE().