Scratch for Java

Vector2::rotateBy()

Rotates the vector by an angle and returns the result.

Syntax

Java

.rotateBy(angle)

Parameters

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

Return

Vector2

rotateBy()