public class Vector2d
Class for representing 2D vectors (x and y).
public static com.acmerobotics.roadrunner.geometry.Vector2d.Companion Companion
@JvmOverloads public Vector2d(double x, double y)
Class for representing 2D vectors (x and y).
@JvmOverloads public Vector2d(double x)
Class for representing 2D vectors (x and y).
@JvmOverloads public Vector2d()
Class for representing 2D vectors (x and y).
public double norm()
public double angle()
public double angleBetween(@NotNull Vector2d other)
@NotNull public Vector2d times(double scalar)
@NotNull public Vector2d div(double scalar)
@NotNull public Vector2d unaryMinus()
public double dot(@NotNull Vector2d other)
public double distTo(@NotNull Vector2d other)
@NotNull public Vector2d rotated(double angle)
public boolean epsilonEquals(@NotNull Vector2d other)
@NotNull public java.lang.String toString()
public double getX()
public double getY()
public double component1()
public double component2()
@NotNull public Vector2d copy(double x, double y)
Class for representing 2D vectors (x and y).
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)
@JvmStatic @NotNull public static Vector2d polar(double r, double theta)