Created
April 14, 2016 13:22
-
-
Save framundo/6a96258acfcbf119c658b7ee463c534f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class GLCameraOptions { | |
| public float eyeX; | |
| public float eyeY; | |
| public float eyeZ; | |
| public float centerX; | |
| public float centerY; | |
| public float centerZ; | |
| public float upX; | |
| public float upY; | |
| public float upZ; | |
| public float near; | |
| public float far; | |
| public GLCameraOptions setEye(float x, float y, float z) { | |
| eyeX = x; | |
| eyeY = y; | |
| eyeZ = z; | |
| return this; | |
| } | |
| public GLCameraOptions setCenter(float x, float y, float z) { | |
| centerX = x; | |
| centerY = y; | |
| centerZ = z; | |
| return this; | |
| } | |
| public GLCameraOptions setUp(float x, float y, float z) { | |
| upX = x; | |
| upY = y; | |
| upZ = z; | |
| return this; | |
| } | |
| public GLCameraOptions setDepthRange(float near, float far) { | |
| this.near = near; | |
| this.far = far; | |
| return this; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment