mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
23 lines
323 B
Java
23 lines
323 B
Java
package com.hbm.render.util;
|
|
|
|
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;
|
|
}
|
|
}
|