31 lines
		
	
	
		
			572 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			572 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| package org.hl.engine.objects;
 | |
| 
 | |
| import org.hl.engine.graphics.Mesh;
 | |
| import org.hl.engine.math.lalg.Vector3f;
 | |
| 
 | |
| public class Camera{
 | |
| 	private Vector3f position;
 | |
| 	private Vector3f rotation;
 | |
| 
 | |
| 	public Camera(Vector3f position, Vector3f rotation) {
 | |
| 		this.position = position;
 | |
| 		this.rotation = rotation;
 | |
| 	}
 | |
| 
 | |
| 	public Vector3f getPosition() {
 | |
| 		return position;
 | |
| 	}
 | |
| 
 | |
| 	public void setPosition(Vector3f position) {
 | |
| 		this.position = position;
 | |
| 	}
 | |
| 
 | |
| 	public Vector3f getRotation() {
 | |
| 		return rotation;
 | |
| 	}
 | |
| 
 | |
| 	public void setRotation(Vector3f rotation) {
 | |
| 		this.rotation = rotation;
 | |
| 	}
 | |
| }
 |