FieldTrackingCoordinates.java

  1. /* Copyright 2002-2024 Luc Maisonobe
  2.  * Licensed to CS GROUP (CS) under one or more
  3.  * contributor license agreements.  See the NOTICE file distributed with
  4.  * this work for additional information regarding copyright ownership.
  5.  * CS licenses this file to You under the Apache License, Version 2.0
  6.  * (the "License"); you may not use this file except in compliance with
  7.  * the License.  You may obtain a copy of the License at
  8.  *
  9.  *   http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.orekit.utils;

  18. import org.hipparchus.CalculusFieldElement;

  19. /** Container for azimut/elevation/range coordinates as seen from a ground point.
  20.  * @param <T> the type of the field elements
  21.  * @see org.orekit.frames.TopocentricFrame
  22.  * @since 12.0
  23.  */
  24. public class FieldTrackingCoordinates<T extends CalculusFieldElement<T>> {

  25.     /** Azimuth. */
  26.     private final T azimuth;

  27.     /** Elevation. */
  28.     private final T elevation;

  29.     /** Range. */
  30.     private final T range;

  31.     /** Simple constructor.
  32.      * @param azimuth azimuth
  33.      * @param elevation elevation
  34.      * @param range range
  35.      */
  36.     public FieldTrackingCoordinates(final T azimuth, final T elevation, final T range) {
  37.         this.azimuth   = azimuth;
  38.         this.elevation = elevation;
  39.         this.range     = range;
  40.     }

  41.     /** Get the azimuth.
  42.      * <p>The azimuth is the angle between the North direction at local point and
  43.      * the projection in local horizontal plane of the direction from local point
  44.      * to given point. Azimuth angles are counted clockwise, i.e positive towards the East.</p>
  45.      * @return azimuth
  46.      */
  47.     public T getAzimuth() {
  48.         return azimuth;
  49.     }

  50.     /** Get the elevation.
  51.      * <p>The elevation is the angle between the local horizontal and
  52.      * the direction from local point to given point.</p>
  53.      * @return elevation
  54.      */
  55.     public T getElevation() {
  56.         return elevation;
  57.     }

  58.     /** Get the range.
  59.      * @return range
  60.      */
  61.     public T getRange() {
  62.         return range;
  63.     }

  64. }