MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / add

Method add

source/MRMesh/MRPointToPointAligningTransform.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void PointToPointAligningTransform::add( const Vector3d& p1, const Vector3d& p2, double w /*= 1.0*/ )
38{
39 sum12_ += w * outer( p1, p2 );
40 sum1_ += w * p1;
41 sum2_ += w * p2;
42 sum11_ += w * p1.lengthSq();
43 sumW_ += w;
44}
45
46void PointToPointAligningTransform::add( const PointToPointAligningTransform & other )
47{

Callers

nothing calls this directly

Calls 2

outerFunction · 0.70
lengthSqMethod · 0.45

Tested by

no test coverage detected