mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-26 22:38:00 +01:00
Minor changes to make Vertex more useful to other mods
This commit is contained in:
parent
8aa4b92dda
commit
8c21872bc3
2 changed files with 5 additions and 1 deletions
|
@ -25,4 +25,8 @@ public class MathUtil {
|
||||||
|
|
||||||
return prev + partialTicks * difference;
|
return prev + partialTicks * difference;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static float interpolateRadians(float prev, float current, float partialTicks) {
|
||||||
|
return (float)Math.toRadians(interpolateDegress(prev, current, partialTicks));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ import net.minecraft.client.model.PositionTextureVertex;
|
||||||
|
|
||||||
public class Vertex extends PositionTextureVertex {
|
public class Vertex extends PositionTextureVertex {
|
||||||
|
|
||||||
Vertex(float x, float y, float z, int texX, int texY) {
|
public Vertex(float x, float y, float z, float texX, float texY) {
|
||||||
super(x, y, z, texX, texY);
|
super(x, y, z, texX, texY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue