setOrthogonalComponents

public void setOrthogonalComponents(double xComponent, double yComponent)

This sets the orthogonal components of the Vector. These orthogonal components are assumed to be in the direction of the x-axis and y-axis. In other words, this is setting the coordinates of the Vector using x and y coordinates instead of a direction and magnitude.

Parameters

xComponent

sets the x component of this Vector.

yComponent

sets the y component of this Vector.