GSSolver class

Constraint equation Gauss-Seidel solver. @todo The spook parameters should be specified for each constraint, not globally. @see https://www8.cs.umu.se/kurser/5DV058/VT09/lectures/spooknotes.pdf

Inheritance

Constructors

GSSolver({double tolerance = 1e-7})
When tolerance is reached, the system is assumed to be converged. @todo remove useless constructor

Properties

equations List<Equation>
All equations to be solved
getter/setter pairinherited
gsSolverSolveBs List<double?>
getter/setter pair
gsSolverSolveInvCs List<double?>
getter/setter pair
gsSolverSolveLambda List<double?>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
iterations int
The number of solver iterations determines quality of the constraints in the world. The number of solver iterations determines quality of the constraints in the world. The more iterations, the more correct simulation. More iterations need more computations though. If you have a large gravity force in your world, you will need more iterations.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tolerance double
getter/setter pairinherited

Methods

addEquation(Equation eq) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllEquations() → void
inherited
removeEquation(Equation eq) → void
inherited
solve(double dt, World world) int
Solve @return number of iterations performed
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited