Package edu.wpi.first.math.geometry
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.
-
Constructor Details
-
CoordinateAxis
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
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
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
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
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
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
Returns a coordinate axis corresponding to -Z in the NWU coordinate system.- Returns:
- A coordinate axis corresponding to -Z in the NWU coordinate system.
-