J'ai viré les classes useless

This commit is contained in:
Antoine
2021-05-21 19:15:48 +02:00
parent ecbe08fdc3
commit 770d134722
6 changed files with 90 additions and 148 deletions

View File

@ -4,12 +4,12 @@ import engine.math.Vector3f;
public class Primitive {
public static float[] createRectangle(float x, float y, float z, float w, float h){
public static float[] createRectangle(float z, float w, float h){
return new float[] {
x , y , z, // Haut gauche
x + w, y , z, // Haut droit
x + w, y - h, z, // Bas droit
x , y - h, z // Bas gauche
0 , 0 , z, // Haut gauche
0 + w, 0 , z, // Haut droit
0 + w, 0 - h, z, // Bas droit
0 , 0 - h, z // Bas gauche
};
}