Scratch for Java

Vector2::fromPolar()

Constructor method for constructing a vector based on polar coordinates.

Syntax

Java

.fromPolar(magnitude, angle)

Parameters

Name Data Type Description
magnitude double of the vector
angle double of the vector

Return

Vector2

fromPolar()

Create Shareable URL

Select Sections