Spritesheet generator for the tortuga game
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
594 B

10 years ago
package com.mykaruga.models.wavefront.loader;
public class Vertex {
private float x;
private float y;
private float z;
public Vertex(float x, float y, float z) {
this.x = x;
this.y = y;
this.z = z;
}
public Vertex() {}
public float getX() {
return x;
}
public void setX(float x) {
this.x = x;
}
public float getY() {
return y;
}
public void setY(float y) {
this.y = y;
}
public float getZ() {
return z;
}
public void setZ(float z) {
this.z = z;
}
public double norm() {
return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2));
}
}