| Vector2FProjectTo Method (Vector2F, Vector2F) |
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 Vector2F ProjectTo(
Vector2F vector,
Vector2F target
)
Public Shared Function ProjectTo (
vector As Vector2F,
target As Vector2F
) As Vector2F
public:
static Vector2F ProjectTo(
Vector2F vector,
Vector2F target
)
static member ProjectTo :
vector : Vector2F *
target : Vector2F -> Vector2F
Parameters
- vector
- Type: DigitalRune.Mathematics.AlgebraVector2F
The vector. - target
- Type: DigitalRune.Mathematics.AlgebraVector2F
The target vector.
Return Value
Type:
Vector2F
The projection of
vector onto
target.
See Also