Skip to content

Instantly share code, notes, and snippets.

View strumer69's full-sized avatar

shahram moradpour strumer69

View GitHub Profile
import numpy as np
import matplotlib.pyplot as plt
width = 300
height = 200
camera = np.array([0, 0, 1])
ratio = float(width) / height
screen = (-1, 1 / ratio, 1, -1 / ratio) # left, top, right, bottom