Class CoordinateAxis

java.lang.Object
edu.wpi.first.math.geometry.CoordinateAxis

public class CoordinateAxis
extends Object
A class representing a coordinate system axis within the NWU coordinate system.
  • Constructor Summary

    Constructors 
    Constructor Description
    CoordinateAxis​(double x, double y, double z)
    Constructs a coordinate system axis within the NWU coordinate system and normalizes it.
  • Method Summary

    Modifier and Type Method Description
    static CoordinateAxis D()
    Returns a coordinate axis corresponding to -Z in the NWU coordinate system.
    static CoordinateAxis E()
    Returns a coordinate axis corresponding to -Y in the NWU coordinate system.
    static CoordinateAxis N()
    Returns a coordinate axis corresponding to +X in the NWU coordinate system.
    static CoordinateAxis S()
    Returns a coordinate axis corresponding to -X in the NWU coordinate system.
    static CoordinateAxis U()
    Returns a coordinate axis corresponding to +Z in the NWU coordinate system.
    static CoordinateAxis W()
    Returns a coordinate axis corresponding to +Y in the NWU coordinate system.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CoordinateAxis

      public CoordinateAxis​(double x, double y, double z)
      Constructs a coordinate system axis within the NWU coordinate system and normalizes it.
      Parameters:
      x - The x component.
      y - The y component.
      z - The z component.
  • Method Details

    • N

      public static CoordinateAxis N()
      Returns a coordinate axis corresponding to +X in the NWU coordinate system.
      Returns:
      A coordinate axis corresponding to +X in the NWU coordinate system.
    • S

      public static CoordinateAxis S()
      Returns a coordinate axis corresponding to -X in the NWU coordinate system.
      Returns:
      A coordinate axis corresponding to -X in the NWU coordinate system.
    • E

      public static CoordinateAxis E()
      Returns a coordinate axis corresponding to -Y in the NWU coordinate system.
      Returns:
      A coordinate axis corresponding to -Y in the NWU coordinate system.
    • W

      public static CoordinateAxis W()
      Returns a coordinate axis corresponding to +Y in the NWU coordinate system.
      Returns:
      A coordinate axis corresponding to +Y in the NWU coordinate system.
    • U

      public static CoordinateAxis U()
      Returns a coordinate axis corresponding to +Z in the NWU coordinate system.
      Returns:
      A coordinate axis corresponding to +Z in the NWU coordinate system.
    • D

      public static CoordinateAxis D()
      Returns a coordinate axis corresponding to -Z in the NWU coordinate system.
      Returns:
      A coordinate axis corresponding to -Z in the NWU coordinate system.