Skip to content

Instantly share code, notes, and snippets.

@framundo
Created April 14, 2016 13:22
Show Gist options
  • Select an option

  • Save framundo/6a96258acfcbf119c658b7ee463c534f to your computer and use it in GitHub Desktop.

Select an option

Save framundo/6a96258acfcbf119c658b7ee463c534f to your computer and use it in GitHub Desktop.
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