set bezier control points in the middle
This commit is contained in:
parent
3b91247d12
commit
1c2fac02be
|
@ -29,8 +29,8 @@ public class CubicStoryboardMover extends StoryboardMultipointMover {
|
|||
@Override
|
||||
public void setInitialStart(Vec2f start) {
|
||||
super.setInitialStart(start);
|
||||
super.addPoint(new Vec2f((start.x + end.x) / 3, (start.y + end.y) / 3));
|
||||
super.addPoint(new Vec2f((start.x + end.x) * 2 / 3, (start.y + end.y) * 2 / 3));
|
||||
super.addPoint(new Vec2f((start.x + end.x) / 2, (start.y + end.y) / 2));
|
||||
super.addPoint(new Vec2f((start.x + end.x) / 2, (start.y + end.y) / 2));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user