%dot%
, %onto%
, and %perp%
are infix operators.
The left-hand argument is a vector.
u %dot% bb %onto% A
b %perp% A
normalize(A)
as_magnitude(A, metric = c("2", "O", "I", "F", "M"))
either a number (for %dot%
) or a vector
a row vector, but a column vector is acceptable too
a column vector
a matrix
metric to use for matrix norm
Convenience functions for basic operations relating to vector projection. These use the MOSAIC Calc conventions that require vectors to be one column matrices.