예제 #1
0
파일: Gaze.cs 프로젝트: Veggie13/Rays2
 public Gaze(Ray pointer, UnitVector up)
 {
     Pointer = pointer;
     Right   = pointer.Direction.Cross(up).Unit;
     Up      = Right.Cross(pointer.Direction).Unit;
 }
예제 #2
0
파일: Vector.cs 프로젝트: Veggie13/Rays2
 public Vector ReflectedIn(UnitVector normal)
 {
     return(this - (2 * Dot(normal)) * normal);
 }