Class Vector2D
java.lang.Object
org.chsrobotics.lib.math.geometry.Vector3D
org.chsrobotics.lib.math.geometry.Vector2D
- Direct Known Subclasses:
Vector1D
Special case of a Vector3D in two dimensions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetZ()Returns the Z (k-hat, positive out of the graph) component of the vector.Methods inherited from class org.chsrobotics.lib.math.geometry.Vector3D
add, crossProduct, dotProduct, equals, getMagnitude, getX, getY, hashCode, scalarDivide, scalarMultiply, subtract, toString
-
Constructor Details
-
Vector2D
public Vector2D(double x, double y) Constructs a 2-dimensional vector.- Parameters:
x- The X (i-hat, positive to the horizontal right on a graph) component of the vector.y- The Y (j-hat, positive up vertically on a graph) component of the vector.
-
-
Method Details