congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Sweep
Code IndexAdd Tabnine to your IDE (free)

How to use
Sweep
in
org.jbox2d.common

Best Java code snippets using org.jbox2d.common.Sweep (Showing top 20 results out of 315)

origin: libgdx/libgdx

   bA.m_sweep.advance(alpha0);
  } else if (bB.m_sweep.alpha0 < bA.m_sweep.alpha0) {
   alpha0 = bA.m_sweep.alpha0;
   bB.m_sweep.advance(alpha0);
  input.proxyA.set(fA.getShape(), indexA);
  input.proxyB.set(fB.getShape(), indexB);
  input.sweepA.set(bA.m_sweep);
  input.sweepB.set(bB.m_sweep);
  input.tMax = 1.0f;
backup1.set(bA.m_sweep);
backup2.set(bB.m_sweep);
 bA.m_sweep.set(backup1);
 bB.m_sweep.set(backup2);
 bA.synchronizeTransform();
 bB.synchronizeTransform();
   backup1.set(other.m_sweep);
   if ((other.m_flags & Body.e_islandFlag) == 0) {
    other.advance(minAlpha);
    other.m_sweep.set(backup1);
    other.synchronizeTransform();
    continue;
    other.m_sweep.set(backup1);
    other.synchronizeTransform();
origin: libgdx/libgdx

final DistanceProxy proxyB = input.proxyB;
sweepA.set(input.sweepA);
sweepB.set(input.sweepB);
sweepA.normalize();
sweepB.normalize();
 sweepA.getTransform(xfA, t1);
 sweepB.getTransform(xfB, t1);
origin: libgdx/libgdx

public float evaluate(int indexA, int indexB, float t) {
 m_sweepA.getTransform(xfa, t);
 m_sweepB.getTransform(xfb, t);
origin: libgdx/libgdx

 protected final void advance(float t) {
  // Advance to the new safe time. This doesn't sync the broad-phase.
  m_sweep.advance(t);
  m_sweep.c.set(m_sweep.c0);
  m_sweep.a = m_sweep.a0;
  m_xf.q.set(m_sweep.a);
  // m_xf.position = m_sweep.c - Mul(m_xf.R, m_sweep.localCenter);
  Rot.mulToOutUnsafe(m_xf.q, m_sweep.localCenter, m_xf.p);
  m_xf.p.mulLocal(-1).addLocal(m_sweep.c);
 }
}
origin: libgdx/libgdx

public float findMinSeparation(int[] indexes, float t) {
 m_sweepA.getTransform(xfa, t);
 m_sweepB.getTransform(xfb, t);
origin: jbox2d/jbox2d

 protected final void advance(float t) {
  // Advance to the new safe time. This doesn't sync the broad-phase.
  m_sweep.advance(t);
  m_sweep.c.set(m_sweep.c0);
  m_sweep.a = m_sweep.a0;
  m_xf.q.set(m_sweep.a);
  // m_xf.position = m_sweep.c - Mul(m_xf.R, m_sweep.localCenter);
  Rot.mulToOutUnsafe(m_xf.q, m_sweep.localCenter, m_xf.p);
  m_xf.p.mulLocal(-1).addLocal(m_sweep.c);
 }
}
origin: jbox2d/jbox2d

final DistanceProxy proxyB = input.proxyB;
sweepA.set(input.sweepA);
sweepB.set(input.sweepB);
sweepA.normalize();
sweepB.normalize();
 sweepA.getTransform(xfA, t1);
 sweepB.getTransform(xfB, t1);
origin: jbox2d/jbox2d

   bA.m_sweep.advance(alpha0);
  } else if (bB.m_sweep.alpha0 < bA.m_sweep.alpha0) {
   alpha0 = bA.m_sweep.alpha0;
   bB.m_sweep.advance(alpha0);
  input.proxyA.set(fA.getShape(), indexA);
  input.proxyB.set(fB.getShape(), indexB);
  input.sweepA.set(bA.m_sweep);
  input.sweepB.set(bB.m_sweep);
  input.tMax = 1.0f;
backup1.set(bA.m_sweep);
backup2.set(bB.m_sweep);
 bA.m_sweep.set(backup1);
 bB.m_sweep.set(backup2);
 bA.synchronizeTransform();
 bB.synchronizeTransform();
   backup1.set(other.m_sweep);
   if ((other.m_flags & Body.e_islandFlag) == 0) {
    other.advance(minAlpha);
    other.m_sweep.set(backup1);
    other.synchronizeTransform();
    continue;
    other.m_sweep.set(backup1);
    other.synchronizeTransform();
origin: libgdx/libgdx

m_sweepB = sweepB;
m_sweepA.getTransform(xfa, t1);
m_sweepB.getTransform(xfb, t1);
origin: com.github.almasb/fxgl-physics

  protected final void advance(float t) {
    // Advance to the new safe time. This doesn't sync the broad-phase.
    m_sweep.advance(t);
    m_sweep.c.set(m_sweep.c0);
    m_sweep.a = m_sweep.a0;
    m_xf.q.set(m_sweep.a);
    // m_xf.position = m_sweep.c - Mul(m_xf.R, m_sweep.localCenter);
    Rotation.mulToOutUnsafe(m_xf.q, m_sweep.localCenter, m_xf.p);
    m_xf.p.mulLocal(-1).addLocal(m_sweep.c);
  }
}
origin: andmizi/MobikeTags

final DistanceProxy proxyB = input.proxyB;
sweepA.set(input.sweepA);
sweepB.set(input.sweepB);
sweepA.normalize();
sweepB.normalize();
 sweepA.getTransform(xfA, t1);
 sweepB.getTransform(xfB, t1);
origin: andmizi/MobikeTags

   bA.m_sweep.advance(alpha0);
  } else if (bB.m_sweep.alpha0 < bA.m_sweep.alpha0) {
   alpha0 = bA.m_sweep.alpha0;
   bB.m_sweep.advance(alpha0);
  input.proxyA.set(fA.getShape(), indexA);
  input.proxyB.set(fB.getShape(), indexB);
  input.sweepA.set(bA.m_sweep);
  input.sweepB.set(bB.m_sweep);
  input.tMax = 1.0f;
backup1.set(bA.m_sweep);
backup2.set(bB.m_sweep);
 bA.m_sweep.set(backup1);
 bB.m_sweep.set(backup2);
 bA.synchronizeTransform();
 bB.synchronizeTransform();
   backup1.set(other.m_sweep);
   if ((other.m_flags & Body.e_islandFlag) == 0) {
    other.advance(minAlpha);
    other.m_sweep.set(backup1);
    other.synchronizeTransform();
    continue;
    other.m_sweep.set(backup1);
    other.synchronizeTransform();
origin: jbox2d/jbox2d

public float evaluate(int indexA, int indexB, float t) {
 m_sweepA.getTransform(xfa, t);
 m_sweepB.getTransform(xfb, t);
origin: org.jbox2d/jbox2d-library

 protected final void advance(float t) {
  // Advance to the new safe time. This doesn't sync the broad-phase.
  m_sweep.advance(t);
  m_sweep.c.set(m_sweep.c0);
  m_sweep.a = m_sweep.a0;
  m_xf.q.set(m_sweep.a);
  // m_xf.position = m_sweep.c - Mul(m_xf.R, m_sweep.localCenter);
  Rot.mulToOutUnsafe(m_xf.q, m_sweep.localCenter, m_xf.p);
  m_xf.p.mulLocal(-1).addLocal(m_sweep.c);
 }
}
origin: com.github.almasb/fxgl-physics

final DistanceProxy proxyB = input.proxyB;
sweepA.set(input.sweepA);
sweepB.set(input.sweepB);
sweepA.normalize();
sweepB.normalize();
  sweepA.getTransform(xfA, t1);
  sweepB.getTransform(xfB, t1);
origin: org.jbox2d/jbox2d-library

   bA.m_sweep.advance(alpha0);
  } else if (bB.m_sweep.alpha0 < bA.m_sweep.alpha0) {
   alpha0 = bA.m_sweep.alpha0;
   bB.m_sweep.advance(alpha0);
  input.proxyA.set(fA.getShape(), indexA);
  input.proxyB.set(fB.getShape(), indexB);
  input.sweepA.set(bA.m_sweep);
  input.sweepB.set(bB.m_sweep);
  input.tMax = 1.0f;
backup1.set(bA.m_sweep);
backup2.set(bB.m_sweep);
 bA.m_sweep.set(backup1);
 bB.m_sweep.set(backup2);
 bA.synchronizeTransform();
 bB.synchronizeTransform();
   backup1.set(other.m_sweep);
   if ((other.m_flags & Body.e_islandFlag) == 0) {
    other.advance(minAlpha);
    other.m_sweep.set(backup1);
    other.synchronizeTransform();
    continue;
    other.m_sweep.set(backup1);
    other.synchronizeTransform();
origin: jbox2d/jbox2d

public float findMinSeparation(int[] indexes, float t) {
 m_sweepA.getTransform(xfa, t);
 m_sweepB.getTransform(xfb, t);
origin: andmizi/MobikeTags

 protected final void advance(float t) {
  // Advance to the new safe time. This doesn't sync the broad-phase.
  m_sweep.advance(t);
  m_sweep.c.set(m_sweep.c0);
  m_sweep.a = m_sweep.a0;
  m_xf.q.set(m_sweep.a);
  // m_xf.position = m_sweep.c - Mul(m_xf.R, m_sweep.localCenter);
  Rot.mulToOutUnsafe(m_xf.q, m_sweep.localCenter, m_xf.p);
  m_xf.p.mulLocal(-1).addLocal(m_sweep.c);
 }
}
origin: org.jbox2d/jbox2d-library

final DistanceProxy proxyB = input.proxyB;
sweepA.set(input.sweepA);
sweepB.set(input.sweepB);
sweepA.normalize();
sweepB.normalize();
 sweepA.getTransform(xfA, t1);
 sweepB.getTransform(xfB, t1);
origin: com.github.almasb/fxgl-physics

      bA.m_sweep.advance(alpha0);
    } else if (bB.m_sweep.alpha0 < bA.m_sweep.alpha0) {
      alpha0 = bA.m_sweep.alpha0;
      bB.m_sweep.advance(alpha0);
    input.proxyA.set(fA.getShape(), indexA);
    input.proxyB.set(fB.getShape(), indexB);
    input.sweepA.set(bA.m_sweep);
    input.sweepB.set(bB.m_sweep);
    input.tMax = 1.0f;
backup1.set(bA.m_sweep);
backup2.set(bB.m_sweep);
  bA.m_sweep.set(backup1);
  bB.m_sweep.set(backup2);
  bA.synchronizeTransform();
  bB.synchronizeTransform();
      backup1.set(other.m_sweep);
      if ((other.m_flags & Body.e_islandFlag) == 0) {
        other.advance(minAlpha);
        other.m_sweep.set(backup1);
        other.synchronizeTransform();
        continue;
        other.m_sweep.set(backup1);
        other.synchronizeTransform();
org.jbox2d.commonSweep

Javadoc

This describes the motion of a body/shape for TOI computation. Shapes are defined with respect to the body origin, which may not coincide with the center of mass. However, to support dynamics we must interpolate the center of mass position.

Most used methods

  • advance
    Advance the sweep forward, yielding a new initial state.
  • getTransform
    Get the interpolated transform at a specific time.
  • normalize
  • set

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Reference (javax.naming)
  • JLabel (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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