src/dk/itu/pitlab/libeyetracking/core/Utils.java
public static GazeData addTo(GazeData target, GazeData other) {
        assertNonNull(target);
        assertNonNull(other);
        target.rawCoordinates = target.rawCoordinates.add(other.rawCoordinates);
        target.smoothedCoordinates = target.smoothedCoordinates.add(other.smoothedCoordinates);
        target.leftEye = addTo(target.leftEye, other.leftEye);
        target.rightEye = addTo(target.rightEye, other.rightEye);
        return target;
    }
/**
     * Adds two GazeData's values in-place!
     *
     * @param target Values will be written here.
     * @param other Values to add to target.
     * @return A reference to target.
     */
Adds two GazeData's values in-place.
@param target Values will be written here.
@param other Values to add to target.
@return A reference to target.
Adds two GazeData ' s values in - place . @param target Values will be written here . @param other Values to add to target . @return A reference to target .
public static GazeData addTo(GazeData target, GazeData other) {
        assertNonNull(target);
        assertNonNull(other);
        target.rawCoordinates = target.rawCoordinates.add(other.rawCoordinates);
        target.smoothedCoordinates = target.smoothedCoordinates.add(other.smoothedCoordinates);
        target.leftEye = addTo(target.leftEye, other.leftEye);
        target.rightEye = addTo(target.rightEye, other.rightEye);
        return target;
    }
public static GazeData addTo ( GazeData target , GazeData other ) { assertNonNull ( target ) ; assertNonNull ( other ) ; target . rawCoordinates = target . rawCoordinates . add ( other . rawCoordinates ) ; target . smoothedCoordinates = target . smoothedCoordinates . add ( other . smoothedCoordinates ) ; target . leftEye = addTo ( target . leftEye , other . leftEye ) ; target . rightEye = addTo ( target . rightEye , other . rightEye ) ; return target ; }
Adds two GazeData's values in-place!
Adds two GazeData ' s values in - place!