Newer
Older
CactusServer / src / main / java / cactusServer / entities / CameraState.java
package cactusServer.entities;

import org.ntlab.radishforandroidstudio.framework.model3D.Quaternion3D;

public class CameraState {
	private double distance; // キャラからの距離
	private Quaternion3D angle;
	private double tilt; // チルト(rad)
	private double fov; // 視野角(rad)
	
	private CameraState() {
		// JSONDecode時の呼び出し用
	}
	
	public CameraState(double distance, Quaternion3D angle, double tilt, double fov) {
		setDistance(distance);
		setAngle(angle);
		setTilt(tilt);
		setFov(fov);
	}

	public double getDistance() {
		return distance;
	}

	public Quaternion3D getAngle() {
		return angle;
	}

	public double getTilt() {
		return tilt;
	}

	public double getFov() {
		return fov;
	}
	
	public void setDistance(double distance) {
		this.distance = distance;
	}

	public void setAngle(Quaternion3D angle) {
		this.angle = angle;
	}

	public void setTilt(double tilt) {
		this.tilt = tilt;
	}

	public void setFov(double fov) {
		this.fov = fov;
	}
}