vec2.interpolate: Difference between revisions
Jump to navigation
Jump to search
m (Mex moved page Vec2.interpolate to vec2.interpolate) |
(No difference)
|
Latest revision as of 15:34, 24 August 2019
Method
Server and Client
Online and Offline
Available since Server 1.0.0, Client 1.0.0
Vec2 vec2.interpolate(Vec2 vector, float ratio)
The vec2.interpolate method is used to fetch a new 2D vector of the vector interpolated with a second 2D vector. Ratio is limited to between -1.0 and 1.0.
Parameters
1) | Vec2 | vector | The second 2D vector. |
2) | float | ratio | The interpolation ratio, between -1.0 and 1.0. |
Return
Vec2 | The new 2D vector. |
Types
Shared
Vec2
Notes
There aren't any notes for this method.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.