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

Constructor method for constructing a vector based on polar coordinates.
.fromPolar(magnitude, angle)
| Name | Data Type | Description |
|---|---|---|
| magnitude | double | of the vector |
| angle | double | of the vector |
Vector2