DX9ToolsR4 - Created by: X

MathHelpers.Displacement Method (PointF, Single, Single, Vector2)

Moves a position using an angle and speed value.

[Visual Basic]
Overloads Public Shared Sub Displacement( _
   ByVal P As PointF, _
   ByVal Speed As Single, _
   ByVal Angle As Single, _
   ByRef Displacement As Vector2 _
)
[C#]
public static void Displacement(
   PointF P,
   float Speed,
   float Angle,
   ref Vector2 Displacement
);

Parameters

P
The start position.
Speed
The speed (distance) to move the position.
Angle
The angle that the position will be moved along.
Displacement
Will be set to the move position.

See Also

MathHelpers Class | CBX.Libs.DX9ToolsR4 Namespace | MathHelpers.Displacement Overload List