Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Solver

Constraint equation solver base class.

Hierarchy

Index

Constructors

constructor

Properties

equations

equations: Equation[]

All equations to be solved

Methods

addEquation

removeAllEquations

  • removeAllEquations(): void

removeEquation

solve

  • solve(dt: number, world: World): number
  • Should be implemented in subclasses!

    todo

    use abstract

    Parameters

    Returns number

    number of iterations performed