def setTransmisor(self, source, transducer, x2, y2, X0, Y0):
    self.Theta = source.Theta
    Ntheta = np.size(self.Theta, 0)
    NXL = int((2 * transducer.SizePixel))
    xL = np.zeros((NXL,), dtype=np.float32)
    yL = np.zeros((NXL,), dtype=np.float32)
    for m in range(0, Ntheta):
        if (np.abs(np.cos(self.Theta[m])) < 1e-05):
            yL = np.linspace((y2[m] - transducer.SizePixel), (y2[m] + transducer.SizePixel), num=NXL, endpoint=True)
            xL[:] = (x2[m] * np.ones((NXL,), dtype=np.float32))
        elif (np.abs(np.cos(self.Theta[m])) == 1):
            xL[:] = np.linspace((x2[m] - transducer.SizePixel), (x2[m] + transducer.SizePixel), num=NXL, endpoint=True)
            yL[:] = (y2[m] - (((x2[m] - X0) / (y2[m] - Y0)) * (xL[:] - x2[m])))
        else:
            xL[:] = np.linspace((x2[m] - (transducer.SizePixel * np.abs(np.cos(self.Theta[m])))), (x2[m] + (transducer.SizePixel * np.abs(np.cos(self.Theta[m])))), num=NXL, endpoint=True)
            yL[:] = (y2[m] - (((x2[m] - X0) / (y2[m] - Y0)) * (xL[:] - x2[m])))
        if (m == 0):
            self.XL = np.zeros((np.size(xL, 0), Ntheta), dtype=np.float32)
            self.YL = np.zeros((np.size(xL, 0), Ntheta), dtype=np.float32)
        self.XL[:, m] = np.around(xL[:])
        self.YL[:, m] = np.around(yL[:])
def setTransmisor(self, source, transducer, x2, y2, X0, Y0):
    self.Theta = source.Theta
    Ntheta = np.size(self.Theta, 0)
    NXL = int((2 * transducer.SizePixel))
    xL = np.zeros((NXL,), dtype=np.float32)
    yL = np.zeros((NXL,), dtype=np.float32)
    for m in range(0, Ntheta):
        if (np.abs(np.cos(self.Theta[m])) < 1e-05):
            yL = np.linspace((y2[m] - transducer.SizePixel), (y2[m] + transducer.SizePixel), num=NXL, endpoint=True)
            xL[:] = (x2[m] * np.ones((NXL,), dtype=np.float32))
        elif (np.abs(np.cos(self.Theta[m])) == 1):
            xL[:] = np.linspace((x2[m] - transducer.SizePixel), (x2[m] + transducer.SizePixel), num=NXL, endpoint=True)
            yL[:] = (y2[m] - (((x2[m] - X0) / (y2[m] - Y0)) * (xL[:] - x2[m])))
        else:
            xL[:] = np.linspace((x2[m] - (transducer.SizePixel * np.abs(np.cos(self.Theta[m])))), (x2[m] + (transducer.SizePixel * np.abs(np.cos(self.Theta[m])))), num=NXL, endpoint=True)
            yL[:] = (y2[m] - (((x2[m] - X0) / (y2[m] - Y0)) * (xL[:] - x2[m])))
        if (m == 0):
            self.XL = np.zeros((np.size(xL, 0), Ntheta), dtype=np.float32)
            self.YL = np.zeros((np.size(xL, 0), Ntheta), dtype=np.float32)
        self.XL[:, m] = np.around(xL[:])
        self.YL[:, m] = np.around(yL[:])