INNER CODE UNIT · Python
up
muskie82/MonoGS · gui/gui_utils.py:41
up = points[2] - points[4]
self.view_dir = (center, eye, up, pose)
self.view_dir_behind = (center, eye_behind, up, pose)
self.center = center
self.eye = eye
self.up = up
def create_frustum(pose, frusutum_color=[0, 1, 0], size=0.02):
points = (
np.array(
[
[0.0, 0.0, 0],
[1.0, -0.5, 2],
[-1.0, -0.5, 2],
[1.0, 0.5, 2],