Share via


Vector4.Lerp Method

Performs a linear interpolation between two 4-D vectors.

Namespace: Microsoft.WindowsMobile.DirectX
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

Syntax

'Declaration
Public Shared Function Lerp ( _
    left As Vector4, _
    right As Vector4, _
    interpolater As Single _
) As Vector4
'Usage
Dim left As Vector4
Dim right As Vector4
Dim interpolater As Single
Dim returnValue As Vector4

returnValue = Vector4.Lerp(left, right, interpolater)
public static Vector4 Lerp (
    Vector4 left,
    Vector4 right,
    float interpolater
)
public:
static Vector4 Lerp (
    Vector4 left, 
    Vector4 right, 
    float interpolater
)
public static Vector4 Lerp (
    Vector4 left, 
    Vector4 right, 
    float interpolater
)
public static function Lerp (
    left : Vector4, 
    right : Vector4, 
    interpolater : float
) : Vector4
Not applicable.

Parameters

  • right
    Source Vector4 structure.
  • interpolater
    Parameter that linearly interpolates between the vectors.

Return Value

A Vector4 structure that is the result of the linear interpolation.

Remarks

This method performs the linear interpolation based on the following formula:

left + interpolater(right - left)

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Vector4 Structure
Vector4 Members
Microsoft.WindowsMobile.DirectX Namespace