2020-03-08 13:34:52 +01:00

23 lines
325 B
Java

package com.hbm.render.loader;
public class RUVertice {
public float x;
public float y;
public float z;
public RUVertice(float X, float Y, float Z) {
x = X;
y = Y;
z = Z;
}
public RUVertice normalize() {
float l = (float) Math.sqrt(x * x + y * y + z * z);
x /= l;
y /= l;
z /= l;
return this;
}
}