Package fr.soleil.salsa.entity.scan2D

Examples of fr.soleil.salsa.entity.scan2D.IRange2D


    // This function returns the configuration it received as parameter.
    // Note that this is specific to LocalConfigMathService and that other implementations of
    // IConfigMathService may behave differently.
    public ITrajectory computeDeltaChange(ITrajectory trajectory, boolean yTrajectory,
            double integrationTime) {
        IRange2D range;
        if (yTrajectory)
            range = ((ITrajectory2DY) trajectory).getRange();
        else
            range = ((ITrajectory2DX) trajectory).getRange();

        double beginPosition = trajectory.getBeginPosition();
        double endPosition = trajectory.getEndPosition();
        double delta = trajectory.getDelta();
        int stepsNumber = (int) Math.abs(Math.round((endPosition - beginPosition) / delta));
        range.setStepsNumber(stepsNumber);
        this.subComputeStepsNumberChange(trajectory, yTrajectory, integrationTime);
        return trajectory;
    }
View Full Code Here


     * @return the updated config. It may be another instance entirely.
     */
    // This function returns the configuration it received as parameter.
    // Note that this is specific to LocalConfigMathService and that other implementations of IConfigMathService may behave differently.
    public ITrajectory computeDeltaChange(ITrajectory trajectory, boolean yTrajectory, double integrationTime) {
        IRange2D range;
        if(yTrajectory)
            range = ((ITrajectory2DY) trajectory).getRange();
        else
            range = ((ITrajectory2DX) trajectory).getRange();
       
        double beginPosition = trajectory.getBeginPosition();
        double endPosition = trajectory.getEndPosition();
        double delta = trajectory.getDelta();
        int stepsNumber = (int) Math.abs(Math.round((endPosition - beginPosition) / delta));
        range.setStepsNumber(stepsNumber);
        this.subComputeStepsNumberChange(trajectory, yTrajectory, integrationTime);
        return trajectory;
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.scan2D.IRange2D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.