MCPcopy Create free account
hub / github.com/MITK/MITK / Line_TestPoints

Method Line_TestPoints

Modules/Core/test/mitkLineTest.cpp:67–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void Line_TestPoints()
68 {
69 mitk::Point3D point1, point2;
70 mitk::FillVector3D(point1, 0, 1, 0);
71 mitk::FillVector3D(point2, 0, 2.5, 0);
72 m_Line.SetPoint1(point1);
73 m_Line.SetPoint2(point2);
74 CPPUNIT_ASSERT_MESSAGE("Test if point 1 was set correctly.", mitk::Equal(m_Line.GetPoint1(), point1));
75 CPPUNIT_ASSERT_MESSAGE("Test if point 2 was set correctly.", mitk::Equal(m_Line.GetPoint2(), point2));
76 }
77
78 void Line_TestParallel()
79 {

Callers

nothing calls this directly

Calls 5

FillVector3DFunction · 0.85
SetPoint1Method · 0.80
SetPoint2Method · 0.80
GetPoint2Method · 0.80
EqualFunction · 0.50

Tested by

no test coverage detected