ReferenceScript nodesMath › Vector 2
Polar to Cartesian
A direction and a length, as x and y.
ƒPolar to Cartesian
Angle Deg45Result
Length1
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Angle Degdegrees | number | 45 | – |
Lengthlength | number | 1 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | vec2 |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log(([Math.cos(45 * Math.PI / 180) * 1, Math.sin(45 * Math.PI / 180) * 1]));In a graph
◆On Scene Start
ƒPolar to Cartesian
Angle Deg45Result
Length1
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.