Newer
Older
AlgebraicDataflowArchitectureModel / GameEngine / src / main / java / gameEngine / geometry / Transform.java
  1. package gameEngine.geometry;
  2.  
  3. import org.joml.Vector3f;
  4.  
  5. public class Transform {
  6.  
  7. public Vector3f position;
  8. public Vector3f rotation;
  9. public Vector3f scale;
  10.  
  11. public Transform() {
  12. this.position = new Vector3f(0, 0, 0);
  13. this.rotation = new Vector3f(0, 0, 0);
  14. this.scale = new Vector3f(1, 1, 1);
  15. }
  16.  
  17. public void setPosition(float x, float y, float z) {
  18. position.x = x;
  19. position.y = y;
  20. position.z = z;
  21. }
  22.  
  23. public void setRotation(float x, float y, float z) {
  24. rotation.x = x;
  25. rotation.y = y;
  26. rotation.z = z;
  27. }
  28.  
  29. public void setScale(float x, float y, float z) {
  30. scale.x = x;
  31. scale.y = y;
  32. scale.z = z;
  33. }
  34. }