README.md

ShadowPlayer

R package to find scalar projections of vectors on other vectors

Install

library(devtools)
install_github("agentlans/ShadowPlayer")

Use

library(ShadowPlayer)

# Two vectors. Note: vectors must be arranged in columns in matrix.
a <- as.matrix(c(1,-1,3))
b <- as.matrix(c(3,3,0))

# Projection is 0 means the vectors are orthogonal to each other
projection(a, b)


agentlans/ShadowPlayer documentation built on May 15, 2019, 12:04 p.m.