All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.parzivail.util.math.Ease Maven / Gradle / Ivy

There is a newer version: 0.0.114+1.20.2
Show newest version
package com.parzivail.util.math;

public class Ease
{
	public static float inCubic(float t)
	{
		return t * t * t;
	}

	public static float outCubic(float t)
	{
		t--;
		return (t * t * t + 1);
	}

	public static float inOutCubic(float t)
	{
		t *= 2;
		if (t < 1)
			return t * t * t / 2;
		t -= 2;
		return (t * t * t + 2) / 2;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy