k5-compose
/
math
/
Vector2DKt
/
setHeading
set
Heading
final static
Vector2D
setHeading
(
Vector2D
$self,
Float
angle)
Content copied to clipboard
Rotate the vector to a specific angle, magnitude remains the same
Parameters
angle
Angle in radians