Vec2Array.java :  » Graphics-3D-2D-OpenGL » android-opengl-box2d-basics » org » jbox2d » pooling » arrays » Android Open Source

Android Open Source » Graphics 3D 2D OpenGL » android opengl box2d basics 
android opengl box2d basics » org » jbox2d » pooling » arrays » Vec2Array.java
package org.jbox2d.pooling.arrays;

import org.jbox2d.common.Vec2;

public class Vec2Array extends DynamicTLArray<Vec2> {

  @Override
  protected Vec2[] getInitializedArray(int argLength) {
    Vec2[] ray = new Vec2[argLength];
    for(int i=0; i<ray.length; i++){
      ray[i] = new Vec2();
    }
    return ray;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.