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

Method getPixelSizeAtPoint

source/MRViewer/MRViewportCamera.cpp:205–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205float Viewport::getPixelSizeAtPoint( const Vector3f& worldPoint ) const
206{
207 Vector4f clipVec = getFullViewportMatrix() * Vector4f( worldPoint.x, worldPoint.y, worldPoint.z, 1 );
208 return clipVec.w / projM_.y.y / params_.cameraZoom / ( viewportRect_.max.y - viewportRect_.min.y ) * 2.0f;
209}
210
211
212// ================================================================

Callers 3

setPointRadius_Method · 0.80
updateGridXfs_Method · 0.80
updateSizeInPixelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected