com.parzivail.util.math.Ease Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pswg Show documentation
Show all versions of pswg Show documentation
Explore the galaxy with Galaxies: Parzi's Star Wars Mod!
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