io.github.kosmx.bendylib.impl.Vertex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bendy-lib Show documentation
Show all versions of bendy-lib Show documentation
Minecraft FabricMC model render library
The newest version!
package io.github.kosmx.bendylib.impl;
import net.minecraft.class_1160;
public class Vertex implements IVertex{
protected final class_1160 pos;
public final float u;
public final float v;
public Vertex(float x, float y, float z, float u, float v){
this(new class_1160(x, y, z), u, v);
}
public Vertex(class_1160 pos, float u, float v){
this.pos = pos;
this.u = u;
this.v = v;
}
@Override
public class_1160 getPos() {
return this.pos;
}
@Override
public float getU() {
return this.u;
}
@Override
public float getV() {
return this.v;
}
@Override
public IVertex remap(float u, float v) {
return new Vertex(this.pos, u, v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy