TeamCode / org.firstinspires.ftc.teamcode.movement / MecanumDrive / Motor / Vector2D / rotatedBy

rotatedBy

open fun rotatedBy(angle: Double): Vector2D

Returns a version of the vector rotated by a given angle in radians.

Parameters

angle - angle at which to rotate the vector, in radians

Return
the rotated vector