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

Method transformView

source/MRViewer/MRViewportCamera.cpp:187–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void Viewport::transformView( const AffineXf3f & xf )
188{
189 auto newAngle = params_.cameraTrackballAngle * Quaternionf( xf.A );
190 auto newTrans = xf.A.inverse() * ( params_.cameraTranslation + xf.b );
191 if ( params_.cameraTrackballAngle == newAngle &&
192 params_.cameraTranslation == newTrans )
193 return;
194 params_.cameraTrackballAngle = newAngle;
195 params_.cameraTranslation = newTrans;
196
197 needRedraw_ = true;
198}
199
200float Viewport::getPixelSize() const
201{

Callers 5

preMouseMove_Method · 0.80
mouseScroll_Method · 0.80
onTouchMove_Method · 0.80

Calls 1

inverseMethod · 0.45

Tested by

no test coverage detected