Class Camera
java.lang.Object
com.soulfiremc.server.renderer.Camera
Represents a camera in 3D space with position, rotation, and projection settings.
Pre-computes direction vectors for efficient ray generation.
-
Constructor Summary
ConstructorsConstructorDescriptionCamera(net.minecraft.world.phys.Vec3 eyePos, float yRot, float xRot, int width, int height, double fov) Creates a camera from position, rotation, and viewport settings. -
Method Summary
-
Constructor Details
-
Camera
public Camera(net.minecraft.world.phys.Vec3 eyePos, float yRot, float xRot, int width, int height, double fov) Creates a camera from position, rotation, and viewport settings.- Parameters:
eyePos- The eye position in world coordinatesyRot- Yaw rotation in degrees (0 = south, 90 = west)xRot- Pitch rotation in degrees (-90 = up, 90 = down)width- Viewport width in pixelsheight- Viewport height in pixelsfov- Field of view in degrees
-
-
Method Details
-
eyeX
public double eyeX() -
eyeY
public double eyeY() -
eyeZ
public double eyeZ() -
forwardX
public double forwardX() -
forwardY
public double forwardY() -
forwardZ
public double forwardZ() -
rightX
public double rightX() -
rightZ
public double rightZ() -
upX
public double upX() -
upY
public double upY() -
upZ
public double upZ() -
screenXMult
public double screenXMult() -
screenYMult
public double screenYMult() -
screenXOffset
public double screenXOffset() -
screenYOffset
public double screenYOffset()
-