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

Method GetAxisVector

Modules/Core/src/DataManagement/mitkBaseGeometry.cpp:219–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219mitk::Vector3D mitk::BaseGeometry::GetAxisVector(unsigned int direction) const
220{
221 Vector3D frontToBack;
222 frontToBack.SetVnlVector(this->GetIndexToWorldTransform()->GetMatrix().GetVnlMatrix().get_column(direction).as_ref());
223 frontToBack *= GetExtent(direction);
224 return frontToBack;
225}
226
227mitk::ScalarType mitk::BaseGeometry::GetExtent(unsigned int direction) const
228{

Calls 3

GetVnlMatrixMethod · 0.80
GetMatrixMethod · 0.80

Tested by 15

testGetAxisVectorExtentFunction · 0.64
TestGetAxisVectorMethod · 0.64
TestSetExtendInMMMethod · 0.64
TestRotateMethod · 0.64
TestCloneMethod · 0.64