Add scaled reflect

Main changed to use tile instead of edge_inds
Other changes to main for visualizations
This commit is contained in:
Jacob
2020-01-20 19:41:48 -05:00
parent 838182ca8e
commit 7c43713fa0
2 changed files with 29 additions and 39 deletions

View File

@@ -73,6 +73,10 @@ glm::vec4 reflect(const glm::vec4 &vec, const glm::vec4 axis) {
return vec - 2.f * project(vec, axis);
}
glm::vec4 reflect_scaled(const glm::vec4 &vec, const glm::vec4 axis) {
return vec - 2.f * glm::length(axis) * project(vec, axis);
}
glm::vec4 gram_schmidt_last(std::vector<glm::vec4> vecs) {
int N = vecs.size();
for (int i = 0; i < N; ++i) {