C# Class Box2D.Common.Sweep

Datei anzeigen Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
A float
A0 float
Alpha0 float
C Vec2
C0 Vec2
LocalCenter Vec2

Public Methods

Method Description
Advance ( float alpha ) : void

Advance the sweep forward, yielding a new initial state.

GetTransform ( Transform xf, float beta ) : void

Get the interpolated transform at a specific time.

Normalize ( ) : void
Set ( Sweep argCloneFrom ) : Sweep
Sweep ( ) : System
ToString ( ) : String

Method Details

Advance() public method

Advance the sweep forward, yielding a new initial state.
public Advance ( float alpha ) : void
alpha float the new initial time.
return void

GetTransform() public method

Get the interpolated transform at a specific time.
public GetTransform ( Transform xf, float beta ) : void
xf Transform the result is placed here - must not be null
beta float the normalized time in [0,1].
return void

Normalize() public method

public Normalize ( ) : void
return void

Set() public method

public Set ( Sweep argCloneFrom ) : Sweep
argCloneFrom Sweep
return Sweep

Sweep() public method

public Sweep ( ) : System
return System

ToString() public method

public ToString ( ) : String
return String

Property Details

A public_oe property

World angles
public float A
return float

A0 public_oe property

World angles
public float A0
return float

Alpha0 public_oe property

Fraction of the current time step in the range [0,1] c0 and a0 are the positions at alpha0.
public float Alpha0
return float

C public_oe property

public Vec2,Box2D.Common C
return Vec2

C0 public_oe property

Center world positions
public Vec2,Box2D.Common C0
return Vec2

LocalCenter public_oe property

Local center of mass position
public Vec2,Box2D.Common LocalCenter
return Vec2