toVec

open fun toVec(cartesianX: Double, cartesianY: Double): Vector2d

Rotates these Cartesian coordinates by 90 degrees clockwise and converts them to a Robot Vector.

Return

the Robot vector representation of the Cartesian vector

Parameters

cartesianX

the Cartesian x coordinate

cartesianY

the Cartesian y coordinate