DX9ToolsR4 - Created by: X

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

Moves a position using an angle and speed value.

[Visual Basic]
Overloads Public Sub Displacement( _
   ByVal X As Single, _
   ByVal Y As Single, _
   ByVal Speed As Single, _
   ByVal Angle As Single, _
   ByRef NewX As Single, _
   ByRef NewY As Single _
)
[C#]
public void Displacement(
   float X,
   float Y,
   float Speed,
   float Angle,
   ref float NewX,
   ref float NewY
);

Parameters

X
The start X position.
Y
The start Y position.
Speed
The speed (distance) to move the position.
Angle
The angle that the position will be moved along.
NewX
Will be set to the move position.
NewY
Will be set to the move position.

See Also

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