Newer
Older
CactusServer / src / main / java / cactusServer / entities / CameraState.java
y-ota on 23 Oct 2018 1 KB format
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)

	public CameraState() {
		distance = 10;
		angle = new Quaternion3D();
		tilt = 0;
		fov = 1.0;
	}

	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;
	}
}