Click or drag to resize
DigitalRuneVectorDProjectTo Method (VectorD, VectorD)
Projects a vector onto an axis given by the target vector.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static VectorD ProjectTo(
	VectorD vector,
	VectorD target
)

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
ExceptionCondition
ArgumentNullExceptionvector or target is .
See Also