Conversation
src/main/java/basewindow/Model.java
Outdated
| public HashMap<String, String> currentSkin = new HashMap<>(); | ||
|
|
||
| public double[] bonesMatrix = new double[]{1, 0, 0, 0, 1, 0, 0, 0, 1}; | ||
| public double[] bonesMatrix = new double[]{1, 0, 0, 0, 1, 0, 0, 0, 1}; |
There was a problem hiding this comment.
Spacing got messed up again.
| 0.0f, 0.0f, 0.5f, 0.0f, | ||
| 0.5f, 0.5f, 0.5f, 1.0f | ||
| }; | ||
| { |
There was a problem hiding this comment.
Spacing got messed up again.
| public static void transformYaw(BaseWindow window, double yaw) | ||
| { | ||
| transform(window, Math.cos(yaw), 0, -Math.sin(yaw), 0, 0, 1, 0, 0, Math.sin(yaw), 0, Math.cos(yaw), 0, 0, 0, 0, 1); | ||
| transform(window, Math.cos(yaw), 0, -Math.sin(yaw), 0, 0, 1, 0, 0, Math.sin(yaw), 0, Math.cos(yaw), 0, 0, 0, 0, 1); |
There was a problem hiding this comment.
This file contains spacing issues.
| transform(window, Math.cos(roll), -Math.sin(roll), 0, 0, Math.sin(roll), Math.cos(roll), 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); | ||
| transform(window, 1, 0, 0, 0, 0, Math.cos(pitch), -Math.sin(pitch), 0, 0, Math.sin(pitch), Math.cos(pitch), 0, 0, 0, 0, 1); | ||
| transform(window, Math.cos(yaw), 0, -Math.sin(yaw), 0, 0, 1, 0, 0, Math.sin(yaw), 0, Math.cos(yaw), 0, 0, 0, 0, 1); | ||
| transform(window, Math.cos(roll), -Math.sin(roll), 0, 0, Math.sin(roll), Math.cos(roll), 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); |
There was a problem hiding this comment.
This file Contains Spacing issues.
| public static void transform(BaseWindow window, double yaw, double pitch, double roll, double x, double y, double z) | ||
| { | ||
| transform(window, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x * window.absoluteWidth, y * window.absoluteHeight, z * window.absoluteDepth, 1); | ||
| transform(window, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x * window.absoluteWidth, y * window.absoluteHeight, z * window.absoluteDepth, 1); |
There was a problem hiding this comment.
This file contains spacing issues.
| public static void transform(BaseWindow window, double x, double y, double z) | ||
| { | ||
| transform(window, x, 0, 0, 0, 0, y, 0, 0, 0, 0, z, 0, 0, 0, 0, 1); | ||
| transform(window, x, 0, 0, 0, 0, y, 0, 0, 0, 0, z, 0, 0, 0, 0, 1); |
There was a problem hiding this comment.
This file contains spacing issues.
| public static void transform(BaseWindow window, double x, double y, double z, double posX, double posY, double posZ) | ||
| { | ||
| transform(window, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, posX * window.absoluteWidth, posY * window.absoluteHeight, posZ * window.absoluteDepth, 1); | ||
| transform(window, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, posX * window.absoluteWidth, posY * window.absoluteHeight, posZ * window.absoluteDepth, 1); |
There was a problem hiding this comment.
This file contains spacing issues.
| public static void transform(BaseWindow window, double xy, double xz, double yx, double yz, double zx, double zy) | ||
| { | ||
| transform(window, 1, xy, xz, 0, yx, 1, yz, 0, zx, zy, 1, 0, 0, 0, 0, 1); | ||
| transform(window, 1, xy, xz, 0, yx, 1, yz, 0, zx, zy, 1, 0, 0, 0, 0, 1); |
There was a problem hiding this comment.
This file contains spacing issues.
| { | ||
| transform(window, | ||
| 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x * window.absoluteWidth, y * window.absoluteHeight, z * window.absoluteDepth, 1); | ||
| 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x * window.absoluteWidth, y * window.absoluteHeight, z * window.absoluteDepth, 1); |
There was a problem hiding this comment.
This file contain spacing issues.
|
|
||
| public double[] matrix = new double[]{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}; | ||
| public double[] compiledMatrix = new double[]{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}; | ||
| public double[] matrix = new double[]{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}; |
There was a problem hiding this comment.
This file contains spacing issues.
| { | ||
| double[][] matrix = m.values; | ||
| double[] d = new double[]{matrix[0][0], matrix[0][1], matrix[0][2], matrix[0][3], | ||
| double[] d = new double[] |
There was a problem hiding this comment.
This file contains spacing issues.
|
Sorry about all the comments. Won't do that again. |
Veni, Vidi, Linere
I came, I saw, I Linted