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