Scratch for Java

Vector2::rotateTo()

Rotates the vector to a given angle and returns the result.

Syntax

Java

.rotateTo(angle)

Parameters

Name Data Type Description
angle double an angle between [0,...,360]

Return

Vector2

rotateTo()