This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/include/reflect.h
github-classroom[bot] 6eef377959
Initial commit
2024-10-11 10:27:35 +00:00

11 lines
341 B
C

#ifndef REFLECT_H
#define REFLECT_H
#include <Eigen/Core>
// Reflect an incoming ray into an out going ray
//
// Inputs:
// in incoming _unit_ ray direction
// n surface _unit_ normal about which to reflect
// Returns outward _unit_ ray direction
Eigen::Vector3d reflect(const Eigen::Vector3d & in, const Eigen::Vector3d & n);
#endif