AxisReferenceFrame.java

  1. /*
  2.  * Licensed to the Apache Software Foundation (ASF) under one or more
  3.  * contributor license agreements.  See the NOTICE file distributed with
  4.  * this work for additional information regarding copyright ownership.
  5.  * The ASF 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.apache.commons.geometry.euclidean.threed.rotation;

  18. /** Enum defining the possible reference frames for locating axis
  19.  * positions during a rotation sequence.
  20.  */
  21. public enum AxisReferenceFrame {

  22.     /** Defines a relative reference frame for a rotation sequence. Sequences
  23.      * with this type of reference frame are called <em>intrinsic rotations</em>.
  24.      *
  25.      * <p>
  26.      * When using a relative reference frame, each successive axis
  27.      * is located relative to the "thing" being rotated and not to some
  28.      * external frame of reference. For example, say that a rotation sequence
  29.      * is defined around the {@code x}, {@code y}, and {@code z} axes in
  30.      * that order. The first rotation will occur around the standard {@code x}
  31.      * axis. The second rotation, however, will occur around the {@code y}
  32.      * axis after it has been rotated by the first rotation; we can call this
  33.      * new axis {@code y'}. Similarly, the third rotation will occur around
  34.      * {@code z''}, which may or may not match the original {@code z} axis.
  35.      * A good real-world example of this type of situation is an airplane,
  36.      * where a pilot makes a sequence of rotations in order, with each rotation
  37.      * using the airplane's own up/down, left/right, back/forward directions
  38.      * as the frame of reference.
  39.      * </p>
  40.      */
  41.     RELATIVE,

  42.     /** Defines an absolute reference frame for a rotation sequence. Sequences
  43.      * with this type of reference frame are called <em>extrinsic rotations</em>.
  44.      *
  45.      * <p>
  46.      * In contrast with the relative reference frame, the absolute reference frame
  47.      * remains fixed throughout a rotation sequence, with each rotation axis not
  48.      * affected by the rotations.
  49.      * </p>
  50.      */
  51.     ABSOLUTE
  52. }