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

Method Cross

Common/DataModel/vtkVector.h:272–279  ·  view source on GitHub ↗

@{ * Return the cross product of this X other. */

Source from the content-addressed store, hash-verified

270 * Return the cross product of this X other.
271 */
272 vtkVector3<T> Cross(const vtkVector3<T>& other) const
273 {
274 vtkVector3<T> res;
275 res[0] = this->Data[1] * other.Data[2] - this->Data[2] * other.Data[1];
276 res[1] = this->Data[2] * other.Data[0] - this->Data[0] * other.Data[2];
277 res[2] = this->Data[0] * other.Data[1] - this->Data[1] * other.Data[0];
278 return res;
279 }
280 ///@}
281
282 ///@{

Callers 5

SlidingNormalsOnLineFunction · 0.45
UpdateTransformMethod · 0.45
ComputeCentroidMethod · 0.45
UpdateTransformMethod · 0.45
TestVectorFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestVectorFunction · 0.36