Inheritance
System.Object
FrictionSimulation
public class FrictionSimulation : Simulation
Constructors
Declaration
public FrictionSimulation(float drag, float position, float velocity, Tolerance tolerance = null)
Parameters
Type |
Name |
Description |
System.Single |
drag |
|
System.Single |
position |
|
System.Single |
velocity |
|
Tolerance |
tolerance |
|
Properties
Declaration
public float finalX { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Declaration
public override float dx(float time)
Parameters
Type |
Name |
Description |
System.Single |
time |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
public override bool isDone(float time)
Parameters
Type |
Name |
Description |
System.Single |
time |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public static FrictionSimulation through(float startPosition, float endPosition, float startVelocity, float endVelocity)
Parameters
Type |
Name |
Description |
System.Single |
startPosition |
|
System.Single |
endPosition |
|
System.Single |
startVelocity |
|
System.Single |
endVelocity |
|
Returns
Declaration
public float timeAtX(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Single |
|
Declaration
public override float x(float time)
Parameters
Type |
Name |
Description |
System.Single |
time |
|
Returns
Type |
Description |
System.Single |
|
Overrides