Skip to content

Commit

Permalink
Fix orientation and direction of Tilt
Browse files Browse the repository at this point in the history
  • Loading branch information
andykee committed Oct 2, 2020
1 parent a8a974f commit 01da13b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lentil/plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,16 +650,17 @@ class Tilt(Plane):
Parameters
----------
x : float
x tilt in radians
Radians of tilt about the x-axis
y : float
y tilt in radians
Radians of tilt about the y-axis
"""
def __init__(self, x, y):
super().__init__()
self.x = x
self.y = y

self.x = y # y tilt is about the x-axis.
self.y = -x # x tilt is about the y axis. There's also a sign flip to get the direction right.

def multiply(self, wavefront, tilt):
wavefront = super().multiply(wavefront, tilt)
Expand Down

0 comments on commit 01da13b

Please sign in to comment.