Пример #1
0
 public Gaze(Ray pointer, UnitVector up)
 {
     Pointer = pointer;
     Right   = pointer.Direction.Cross(up).Unit;
     Up      = Right.Cross(pointer.Direction).Unit;
 }
Пример #2
0
 public Vector ReflectedIn(UnitVector normal)
 {
     return(this - (2 * Dot(normal)) * normal);
 }