public class Sweep
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
float |
a
World angles
|
float |
a0
World angles
|
float |
alpha0
Fraction of the current time step in the range [0,1] c0 and a0 are the positions at alpha0.
|
Vec2 |
c
Center world positions
|
Vec2 |
c0
Center world positions
|
Vec2 |
localCenter
Local center of mass position
|
Constructor and Description |
---|
Sweep() |
Modifier and Type | Method and Description |
---|---|
void |
advance(float alpha)
Advance the sweep forward, yielding a new initial state.
|
void |
getTransform(Transform xf,
float beta)
Get the interpolated transform at a specific time.
|
void |
normalize() |
Sweep |
set(Sweep argCloneFrom) |
java.lang.String |
toString() |
public final Vec2 localCenter
public final Vec2 c0
public final Vec2 c
public float a0
public float a
public float alpha0
public java.lang.String toString()
toString
in class java.lang.Object
public final void normalize()
public final void getTransform(Transform xf, float beta)
xf
- the result is placed here - must not be nullt
- the normalized time in [0,1].public final void advance(float alpha)
alpha
- the new initial time.Copyright © 2017. All Rights Reserved.