protected void adjustRectangle ( Rectangle2D_F64 rect , ScaleTranslate2D motion ) { rect . p0 . x = rect . p0 . x * motion . scale + motion . transX ; rect . p0 . y = rect . p0 . y * motion . scale + motion . transY ; rect . p1 . x = rect . p1 . x * motion . scale + motion . transX ; rect . p1 . y = rect . p1 . y * motion . scale + motion . transY ; }
Estimate motion of points inside the rectangle and updates the rectangle using the found motion .