VS:Comp
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Returns the components of a comparison of two vectors.
The vector component of v1 along v2 in v3, and the vector component of v1 orthogonal to v2 in v4.
PROCEDURE Comp(
v1 :VECTOR;
v2 :VECTOR;
VAR v3 :VECTOR;
VAR v4 :VECTOR);
def vs.Comp(v1, v2, v3, v4): return (v3, v4)
Parameters
v1 VECTOR Comparison vector 1. v2 VECTOR Comparison vector 2 v3 VECTOR Component of vector 1 along vector 2 v4 VECTOR Component of vector 1 orthogonal to vector 2.
Remarks
(Orso, 2010 Dec. 22) On Vectorlab there is a diagram of how Comp works.
Version
Availability: from All Versions