blob: b9c41c4882a68d0d62f382e4bc027d7bdbe26f5a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Pierre Allard,
* Regent L'Archeveque - initial API and implementation
*
* SPDX-License-Identifier: EPL-1.0
*
*******************************************************************************/
package org.eclipse.apogy.core.environment.orbit.earth.impl;
import org.orekit.utils.ElevationMask;
public class ConstantElevationMaskCustomImpl extends ConstantElevationMaskImpl {
@Override
public double getElevation(double azimuth) {
return getOreKitElevationMask().getElevation(azimuth);
}
@Override
public ElevationMask getOreKitElevationMask() {
double[][] maskValues = new double[][] { { 0, 0 }, { 0, 0 } };
org.orekit.utils.ElevationMask mask = new ElevationMask(maskValues) {
private static final long serialVersionUID = -89818792036112341L;
final double el = getConstantElevation();
@Override
public double getElevation(double arg0) {
return this.el;
}
};
return mask;
}
} // ConstantElevationMaskImpl