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

Go to the source code of this file.

Functions

 BOOST_TEST (m1==m3)
 
 BOOST_TEST (m2 !=m1)
 
 BOOST_TEST (res==expected)
 
MATRIX3x3 expected (VECTOR3I{ 5, 5, 5 }, { 10, 10, 10 }, { 15, 15, 15 })
 

Variables

MATRIX3x3D m2 (VECTOR3I{ 6, 6, 6 }, { 1, 1, 1 }, { 3, 3, 3 })
 Test suite for KiCad math code.
 
MATRIX3x3D m3 (VECTOR3I{ 1, 1, 1 }, { 2, 2, 2 }, { 3, 3, 3 })
 
VECTOR3I v1 (5, 5, 5)
 
VECTOR3I res = m1 * v1
 
VECTOR3I expected (15, 30, 45)
 

Function Documentation

◆ BOOST_TEST() [1/3]

BOOST_TEST ( m1  = =m3)

◆ BOOST_TEST() [2/3]

BOOST_TEST ( m2 = m1)

◆ BOOST_TEST() [3/3]

BOOST_TEST ( res  = =expected)

◆ expected()

MATRIX3x3 expected ( VECTOR3I{ 5, 5, 5 }  ,
{ 10, 10, 10 }  ,
{ 15, 15, 15 }   
)

Variable Documentation

◆ expected

◆ m2

MATRIX3x3D m2(VECTOR3I{ 6, 6, 6 }, { 1, 1, 1 }, { 3, 3, 3 }) ( VECTOR3I{ 6, 6, 6 }  ,
{ 1, 1, 1 }  ,
{ 3, 3, 3 }   
)
Initial value:
{
MATRIX3x3D m1( VECTOR3I{ 1, 1, 1 }, { 2, 2, 2 }, { 3, 3, 3 } )
Define a general 3D-vector.
Definition: vector3.h:55

Test suite for KiCad math code.

Declare the test suite

Referenced by PNS::MEANDER_SHAPE::Fit().

◆ m3

MATRIX3x3D m3(VECTOR3I{ 1, 1, 1 }, { 2, 2, 2 }, { 3, 3, 3 }) ( VECTOR3I{ 1, 1, 1 }  ,
{ 2, 2, 2 }  ,
{ 3, 3, 3 }   
)

◆ res

MATRIX3x3 res = m1 * v1

Definition at line 54 of file test_matrix3x3.cpp.

Referenced by SCH_PIN_TABLE_DATA_MODEL::compare(), PIN_TABLE_DATA_MODEL::compare(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare(), PIN_NUMBERS::Compare(), MICROWAVE_TOOL::createMicrowaveInductor(), PNS::MULTI_DRAGGER::Drag(), fontconfig::FONTCONFIG::getFcString(), SYMBOL_LIBRARY_MANAGER::GetLibraryNames(), UTIL::GetRefDesPrefix(), PROPERTY< Owner, T, Base >::getter(), PROPERTY_ENUM< Owner, T, Base >::getter(), COROUTINE< ReturnType, ArgType >::GuardMemory(), intersectsBackCourtyardFunc(), intersectsCourtyardFunc(), intersectsFrontCourtyardFunc(), EESCHEMA_JOBS_HANDLER::JobExportBom(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), PerlinNoise::noise(), PANEL_FP_PROPERTIES_3D_MODEL::On3DModelCellChanged(), PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DModel(), SPICE_VALUE::operator*(), SPICE_VALUE::operator+(), SPICE_VALUE::operator-(), SPICE_VALUE::operator/(), operator|(), FOOTPRINT_WIZARD_FRAME::ParametersUpdated(), DSNLEXER::parseDouble(), SEXPR::PARSER::parseString(), PANEL_FP_PROPERTIES_3D_MODEL::ReloadModelsFromFootprint(), SYMBOL_LIBRARY_MANAGER::SaveLibrary(), SIMULATOR_FRAME_UI::SaveWorkbook(), HTTP_LIB_CONNECTION::SelectAll(), HTTP_LIB_CONNECTION::SelectOne(), PYTHON_FOOTPRINT_WIZARD::SetParameterValues(), HTTP_LIB_CONNECTION::syncCategories(), SPICE_VALUE::ToDouble(), DXF_IMPORT_PLUGIN::toDxfString(), DXF_IMPORT_PLUGIN::toNativeString(), SPICE_VALUE::ToSpiceString(), SPICE_VALUE::ToString(), DIALOG_REGULATOR_FORM::TransferDataFromWindow(), HTTP_LIB_CONNECTION::ValidateHTTPLibraryEndpoints(), and SCH_EDIT_FRAME::WriteNetListFile().

◆ v1