Skip to content
Snippets Groups Projects
Commit b50d5725 authored by Andreas Freise's avatar Andreas Freise
Browse files

added method to reverse beam direction.

parent ab06a7ed
Branches
No related tags found
No related merge requests found
......@@ -146,6 +146,10 @@ class gauss_param(object):
@imag.setter
def imag(self, value): self.__q.imag = SIfloat(value)
# reverse beam direction
def reverse(self):
self.__q = -1.0 * self.__q.real + 1j * self.__q.imag
class HG_gauss_beam(object):
def __init__(self, qx, qy=None, n=0, m=0):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment