Tabnine Logo
ObjectPool.fetch
Code IndexAdd Tabnine to your IDE (free)

How to use
fetch
method
in
com.ardor3d.math.ObjectPool

Best Java code snippets using com.ardor3d.math.ObjectPool.fetch (Showing top 20 results out of 315)

origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of LineSegment3 that is intended for temporary use in calculations and so forth. Multiple
 *         calls to the method should return instances of this class that are not currently in use.
 */
public final static LineSegment3 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return LineSegment3.LINESEG3_POOL.fetch();
  } else {
    return new LineSegment3();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Rectangle2 that is intended for temporary use in calculations and so forth. Multiple calls
 *         to the method should return instances of this class that are not currently in use.
 */
public final static Rectangle2 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Rectangle2.RECTANGLE_POOL.fetch();
  } else {
    return new Rectangle2();
  }
}
origin: Renanse/Ardor3D

/**
 * @return An instance of ColorRGBA that is intended for temporary use in calculations and so forth. Multiple calls
 *         to the method should return instances of this class that are not currently in use.
 */
public final static ColorRGBA fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return ColorRGBA.COLOR_POOL.fetch();
  } else {
    return new ColorRGBA();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Matrix4 that is intended for temporary use in calculations and so forth. Multiple calls to
 *         the method should return instances of this class that are not currently in use.
 */
public final static Matrix4 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Matrix4.MAT_POOL.fetch();
  } else {
    return new Matrix4();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Ray that is intended for temporary use in calculations and so forth. Multiple calls to the
 *         method should return instances of this class that are not currently in use.
 */
public final static Ray3 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Ray3.RAY_POOL.fetch();
  } else {
    return new Ray3();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Matrix3 that is intended for temporary use in calculations and so forth. Multiple calls to
 *         the method should return instances of this class that are not currently in use.
 */
public final static Matrix3 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Matrix3.MAT_POOL.fetch();
  } else {
    return new Matrix3();
  }
}
origin: Renanse/Ardor3D

/**
 * @return An instance of Ring that is intended for temporary use in calculations and so forth. Multiple calls to
 *         the method should return instances of this class that are not currently in use.
 */
public final static Ring fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Ring.RING_POOL.fetch();
  } else {
    return new Ring();
  }
}
origin: Renanse/Ardor3D

/**
 * @return An instance of Line3 that is intended for temporary use in calculations and so forth. Multiple calls to
 *         the method should return instances of this class that are not currently in use.
 */
public final static Line3 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return LINE3_POOL.fetch();
  } else {
    return new Line3();
  }
}
origin: Renanse/Ardor3D

/**
 * @return An instance of LineSegment3 that is intended for temporary use in calculations and so forth. Multiple
 *         calls to the method should return instances of this class that are not currently in use.
 */
public final static LineSegment3 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return LineSegment3.LINESEG3_POOL.fetch();
  } else {
    return new LineSegment3();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Transform that is intended for temporary use in calculations and so forth. Multiple calls
 *         to the method should return instances of this class that are not currently in use.
 */
public final static Transform fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Transform.TRANS_POOL.fetch();
  } else {
    return new Transform();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Plane that is intended for temporary use in calculations and so forth. Multiple calls to
 *         the method should return instances of this class that are not currently in use.
 */
public final static Plane fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Plane.PLANE_POOL.fetch();
  } else {
    return new Plane();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Vector2 that is intended for temporary use in calculations and so forth. Multiple calls to
 *         the method should return instances of this class that are not currently in use.
 */
public final static Vector2 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Vector2.VEC_POOL.fetch();
  } else {
    return new Vector2();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Rectangle3 that is intended for temporary use in calculations and so forth. Multiple calls
 *         to the method should return instances of this class that are not currently in use.
 */
public final static Rectangle3 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Rectangle3.RECTANGLE_POOL.fetch();
  } else {
    return new Rectangle3();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Line3 that is intended for temporary use in calculations and so forth. Multiple calls to
 *         the method should return instances of this class that are not currently in use.
 */
public final static Line3 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return LINE3_POOL.fetch();
  } else {
    return new Line3();
  }
}
origin: com.ardor3d/ardor3d-math

/**
 * @return An instance of Triangle that is intended for temporary use in calculations and so forth. Multiple calls
 *         to the method should return instances of this class that are not currently in use.
 */
public final static Triangle fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Triangle.TRI_POOL.fetch();
  } else {
    return new Triangle();
  }
}
origin: Renanse/Ardor3D

/**
 * @return An instance of Plane that is intended for temporary use in calculations and so forth. Multiple calls to
 *         the method should return instances of this class that are not currently in use.
 */
public final static Plane fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Plane.PLANE_POOL.fetch();
  } else {
    return new Plane();
  }
}
origin: Renanse/Ardor3D

/**
 * @return An instance of Ray that is intended for temporary use in calculations and so forth. Multiple calls to the
 *         method should return instances of this class that are not currently in use.
 */
public final static Ray3 fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Ray3.RAY_POOL.fetch();
  } else {
    return new Ray3();
  }
}
origin: Renanse/Ardor3D

/**
 * @return An instance of Triangle that is intended for temporary use in calculations and so forth. Multiple calls
 *         to the method should return instances of this class that are not currently in use.
 */
public final static Triangle fetchTempInstance() {
  if (MathConstants.useMathPools) {
    return Triangle.TRI_POOL.fetch();
  } else {
    return new Triangle();
  }
}
origin: com.ardor3d/ardor3d-core

public final static StateStack fetchTempInstance() {
  if (Constants.useStatePools) {
    final StateStack s = STATESTACKS_POOL.fetch();
    // re-use already allocated stacks
    for (final Stack<RenderState> stack : s.stacks.values()) {
      stack.clear();
    }
    return s;
  } else {
    return new StateStack();
  }
}
origin: Renanse/Ardor3D

public final static StateStack fetchTempInstance() {
  if (Constants.useStatePools) {
    final StateStack s = STATESTACKS_POOL.fetch();
    // re-use already allocated stacks
    for (final Stack<RenderState> stack : s.stacks.values()) {
      stack.clear();
    }
    return s;
  } else {
    return new StateStack();
  }
}
com.ardor3d.mathObjectPoolfetch

Popular methods of ObjectPool

  • release
  • newInstance
  • create

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JFrame (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now