Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Rotate Z
- x = (( x * Math.cos(radz)) - (y * Math.sin(radz)));
- y = (( x * Math.sin(radz)) + (y * Math.cos(radz)));
- //Ignore Z ###############################################
- //Rotate Y
- x = (( x * Math.cos(rady)) - (z * Math.sin(rady)));
- //Ignore Y ###############################################
- z = (( x * Math.sin(rady)) + (z * Math.cos(rady)));
- //Rotate X
- //Ignore X ###############################################
- y = (( y * Math.cos(radx)) - (z * Math.sin(radx)));
- z = (( y * Math.sin(radx)) + (z * Math.cos(radx)));
- double radx = Math.toRadians(0f);
- double rady = Math.toRadians(90f);
- double radz = Math.toRadians(0f);
- double x = 1;
- double y = 0;
- double z = 0;
- System.out.println(x + " " + y + " " + z);
Add Comment
Please, Sign In to add comment