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

Function calculateMatrixP

source/MRMesh/MRPointToPointAligningTransform.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12inline SymMatrix4d calculateMatrixP( const Matrix3d & s )
13{
14 SymMatrix4d P;
15 P.xx = s.x.x + s.y.y + s.z.z; P.xy = s.y.z - s.z.y; P.xz = s.z.x - s.x.z; P.xw = s.x.y - s.y.x;
16 P.yy = s.x.x - s.y.y - s.z.z; P.yz = s.x.y + s.y.x, P.yw = s.z.x + s.x.z;
17 P.zz = s.y.y - s.x.x - s.z.z; P.zw = s.y.z + s.z.y;
18 P.ww = s.z.z - s.x.x - s.y.y;
19 return P;
20}
21
22SymMatrix3d caluclate2DimensionsP( const SymMatrix4d& P, const Vector4d& d1, const Vector4d& d2 )
23{

Callers 2

findPureRotation_Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected