| Vector2DProjectTo Method (Vector2D, Vector2D) |
Projects a vector onto an axis given by the target vector.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static Vector2D ProjectTo(
Vector2D vector,
Vector2D target
)
Public Shared Function ProjectTo (
vector As Vector2D,
target As Vector2D
) As Vector2D
public:
static Vector2D ProjectTo(
Vector2D vector,
Vector2D target
)
static member ProjectTo :
vector : Vector2D *
target : Vector2D -> Vector2D
Parameters
- vector
- Type: DigitalRune.Mathematics.AlgebraVector2D
The vector. - target
- Type: DigitalRune.Mathematics.AlgebraVector2D
The target vector.
Return Value
Type:
Vector2D
The projection of
vector onto
target.
See Also