This commit is contained in:
wangcongtao
2021-03-09 10:08:49 +08:00
4 changed files with 8 additions and 8 deletions

View File

@@ -235,13 +235,14 @@ public class SimpleHandlerThreadPool {
startPoint.point = lastPoint;
startPoint.marker = marker;
startPoint.angle = ( float ) lastPosition.getHeading();
List< BaseDrawer.MovingPoint > points = BaseDrawer.interpolate( startPoint, endPoint, 30, interval );
List< BaseDrawer.MovingPoint > points = BaseDrawer.interpolate( startPoint, endPoint, 20, interval );
Message msg = new Message();
BaseDrawer.MovingPoints obj = new BaseDrawer.MovingPoints();
obj.points = points;
msg.obj = obj;
msg.what = MSG_POINTS_SETTING;
renderHandler.sendMessage( msg );
startSettingPointLooper(obj);
// msg.obj = obj;
// msg.what = MSG_POINTS_SETTING;
// renderHandler.sendMessage( msg );
// marker.startSmoothInMs( points, interval );
// marker.addDynamicAnchorPosition( endLatLon, interval );
Logger.d( TAG, "anim duration: %s, points size = %s", interval, points.size() );