MCPcopy Create free account
hub / github.com/Kitware/VTK / TransformNormal

Function TransformNormal

Common/DataModel/vtkImageData.cxx:1600–1606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1598// must pass the inverse matrix
1599template <typename T1, typename T2>
1600inline static void TransformNormal(T1 input0, T1 input1, T1 input2, T2 output[3], vtkMatrix4x4* m4)
1601{
1602 double* mdata = m4->GetData();
1603 output[0] = mdata[0] * input0 + mdata[4] * input1 + mdata[8] * input2;
1604 output[1] = mdata[1] * input0 + mdata[5] * input1 + mdata[9] * input2;
1605 output[2] = mdata[2] * input0 + mdata[6] * input1 + mdata[10] * input2;
1606}
1607
1608// useful for when the ImageData is not available but the information
1609// spacing, origin, direction are

Callers

nothing calls this directly

Calls 1

GetDataMethod · 0.45

Tested by

no test coverage detected