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