Class ConstantCartesianToleranceProvider

    • Constructor Detail

      • ConstantCartesianToleranceProvider

        public ConstantCartesianToleranceProvider​(double dP,
                                                  double dV,
                                                  double dM,
                                                  double relativeTolerance)
        Constructor.
        Parameters:
        dP - expected absolute error in position
        dV - expected absolute error in velocity
        dM - expected absolute error in mass
        relativeTolerance - expected relative error
    • Method Detail

      • getTolerances

        public double[][] getTolerances​(Vector3D position,
                                        Vector3D velocity)
        Description copied from interface: CartesianToleranceProvider
        Retrieve the integration tolerances given reference position and velocity vectors.
        Specified by:
        getTolerances in interface CartesianToleranceProvider
        Parameters:
        position - reference position vector
        velocity - reference velocity vector
        Returns:
        absolute and relative tolerances