Skip to content

Commit

Permalink
more clang
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros committed Feb 3, 2025
1 parent 3ba84de commit dd04c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/3d/qgs3dmaptoolpointcloudchangeattribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ struct MapToPixel3D
*isInView = !( zNdc < -1 || zNdc > 1 || yNdc < -1 || yNdc > 1 || zNdc < -1 || xNdc > 1 );

// window / sceen space coordinates
const float xScreen = ( xNdc + 1 ) * 0.5f * canvasSize.width();
const float yScreen = ( -yNdc + 1 ) * 0.5f * canvasSize.height();
const float xScreen = ( xNdc + 1 ) * 0.5f * static_cast<float>( canvasSize.width() );
const float yScreen = ( -yNdc + 1 ) * 0.5f * static_cast<float>( canvasSize.height() );

return QPointF( xScreen, yScreen );
}
Expand Down

0 comments on commit dd04c90

Please sign in to comment.