 | Vector2FSlerp Method |
Spherically interpolates between the two passed vectors.
Namespace: Slash.Math.Algebra.VectorsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static Vector2F Slerp(
Vector2F from,
Vector2F to,
float step
)
Public Shared Function Slerp (
from As Vector2F,
to As Vector2F,
step As Single
) As Vector2F
public:
static Vector2F Slerp(
Vector2F from,
Vector2F to,
float step
)
static member Slerp :
from : Vector2F *
to : Vector2F *
step : float32 -> Vector2F
Parameters
- from
- Type: Slash.Math.Algebra.VectorsVector2F
First point of the arc. - to
- Type: Slash.Math.Algebra.VectorsVector2F
Last point of the arc. - step
- Type: SystemSingle
Interpolation parameter.
Return Value
Type:
Vector2F
Value of
step along the path along the line segment in the plane.
See Also