Add common pathing code and SimplePathing module

This commit is contained in:
johni0702
2016-03-10 12:31:37 +01:00
parent cf9879b198
commit 626429a780
51 changed files with 3296 additions and 77 deletions

View File

@@ -0,0 +1,28 @@
package com.replaymod.pathing.interpolation;
import lombok.Data;
/**
* Parameters which can be used to make an interpolation more fitting to the previous one.
*/
@Data
public class InterpolationParameters {
/**
* The final value.
* Should be the same as for the final property.
* If it differs though, this value should be preferred.
*/
private final double value;
/**
* Velocity at the end of the interpolation.
* Normally this is the first derivative of the interpolating function at the end of the interpolation.
*/
private final double velocity;
/**
* Acceleration at the end of the interpolation.
* Normally this is the second derivative of the interpolating function at the end of the interpolation.
*/
private final double acceleration;
}