def _get_axes_vectors(self): """calculate the model vectors along the screen's x and y axes""" # The "up" vector defines, in what proportion each axis of the model is # in line with the screen's y axis. v_up = self.view["up"] factors_y = (number(v_up[0]), number(v_up[1]), number(v_up[2])) # Calculate the proportion of each model axis according to the x axis of # the screen. distv = self.view["distance"] distv = Point(distv[0], distv[1], distv[2]).normalized() factors_x = distv.cross(Point(v_up[0], v_up[1], v_up[2])).normalized() factors_x = (factors_x.x, factors_x.y, factors_x.z) return (factors_x, factors_y)