Android Open Source - ExpertAndroid Frustum Dimensions

From Project

Back to project page ExpertAndroid.


The source code is released under:

MIT License

If you think the Android project ExpertAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.iuriio.demos.expertandroid.ch9openglexperiments;
/* w ww. j a v a 2s.  c  o m*/
 * See Android Matrix.frustM api for details
  public class FrustumDimensions 
    //These are usually set by figuring out
    //the window ratio. 
    public float left;
    public float right;
    public float bottom;
    public float top;
    public float near;
    public float far;
    public FrustumDimensions(float left, float right, 
        float bottom, float top,
        float near, float far)   {
      this.left = left;
      this.right = right;
      this.bottom = bottom; = top;
      this.near = near;
      this.far = far;
    static public FrustumDimensions getDefault()  {
      return new FrustumDimensions(-1, 1, -1, 1, 3, 7);
    static public FrustumDimensions getMedium()  {
      return new FrustumDimensions(-1, 1, -2, 2, 3, 15);

Java Source Code List