Delete src/main/java directory

This commit is contained in:
JoeMolinelli authored and GitHub committed 2026-07-21 23:10:51 -04:00
1 parent e7d0ea4268
commit bca69d3ab1
35 files changed
-5745

No files matched your search

@@ -1,34 +0,0 @@
package WS3000.weatherstar3000;
import org.joml.*;
public class Camera {
private Matrix4f projectionMatrix, viewMatrix;
Vector2f position;
public Camera(Vector2f position) {
this.position = position;
this.projectionMatrix = new Matrix4f();
this.viewMatrix = new Matrix4f();
adjustProjection();
}
public void adjustProjection() {
projectionMatrix.identity();
projectionMatrix.ortho(0.0f, 720.0f, 480.0f, 0.0f, 0.0f, 100.0f);
}
public Matrix4f getViewMatrix() {
Vector3f cameraFront = new Vector3f(0.0f, 0.0f, -1.0f);
Vector3f cameraUp = new Vector3f(0.0f, 1.0f, 0.0f);
this.viewMatrix.identity();
viewMatrix = viewMatrix.lookAt(new Vector3f(position.x, position.y, 20.0f),
cameraFront.add(position.x, position.y, 0.0f),
cameraUp);
return this.viewMatrix;
}
public Matrix4f getProjectionMatrix() {
return this.projectionMatrix;
}
}