Package | Description |
---|---|
org.gicentre.utils.network.traer.physics |
Physics library for use with Processing.
|
Modifier and Type | Class and Description |
---|---|
class |
Drag
Class capable of applying the drag on a particle to inhibit its motion.
|
class |
Gravity
Represents a gravity function which may be applied to particles.
|
Modifier and Type | Method and Description |
---|---|
<ToNew> Function<From,ToNew> |
Function.combine(Function<To,ToNew> otherFunction)
Combines the given function with this one.
|
protected static Function<Particle,?> |
RungeKuttaIntegrator.kApplier(java.util.Map<Particle,Vector3D> kForces,
java.util.Map<Particle,Vector3D> kVelocities,
java.util.Map<Particle,Vector3D> originalPositions,
java.util.Map<Particle,Vector3D> originalVelocities,
float deltaT)
Provides the function that applies the single increment of the particles' positions and velocities.
|
protected static Function<Particle,?> |
RungeKuttaIntegrator.kFunctor(java.util.Map<Particle,Vector3D> kForces,
java.util.Map<Particle,Vector3D> kVelocities)
Provides the function capable of performing the integration.
|
protected Function<Particle,?> |
SettlingRungeKuttaIntegrator.updater(java.util.Map<Particle,Vector3D> k1f,
java.util.Map<Particle,Vector3D> k1v,
java.util.Map<Particle,Vector3D> k2f,
java.util.Map<Particle,Vector3D> k2v,
java.util.Map<Particle,Vector3D> k3f,
java.util.Map<Particle,Vector3D> k3v,
java.util.Map<Particle,Vector3D> k4f,
java.util.Map<Particle,Vector3D> k4v,
java.util.Map<Particle,Vector3D> oPos,
java.util.Map<Particle,Vector3D> oVel,
float deltaT)
Provides the function that updates the particles in the system.
|
protected Function<Particle,?> |
RungeKuttaIntegrator.updater(java.util.Map<Particle,Vector3D> k1f,
java.util.Map<Particle,Vector3D> k1v,
java.util.Map<Particle,Vector3D> k2f,
java.util.Map<Particle,Vector3D> k2v,
java.util.Map<Particle,Vector3D> k3f,
java.util.Map<Particle,Vector3D> k3v,
java.util.Map<Particle,Vector3D> k4f,
java.util.Map<Particle,Vector3D> k4v,
java.util.Map<Particle,Vector3D> oPos,
java.util.Map<Particle,Vector3D> oVel,
float deltaT)
Provides the function that updates the particles in the system.
|
Modifier and Type | Method and Description |
---|---|
<ToNew> Function<From,ToNew> |
Function.combine(Function<To,ToNew> otherFunction)
Combines the given function with this one.
|
static <From,To> void |
Function.functor(java.lang.Iterable<From> source,
Function<From,To> sideEffector)
Applies the given sideEffector on the the source.
|
static <To,From> java.lang.Iterable<To> |
Function.transform(java.lang.Iterable<From> source,
Function<From,To> transform)
Transforms the given source using the given function.
|