draw_utils.py
def project25d(wx, wy, wz, win_width, win_height, fov=90.0, viewer_distance=0):
    """ Transforms this 3D point to 2D using a perspective projection. """    
    factor = fov / (viewer_distance + wz)
    
    x = wx * factor + win_width / 2
    y = wy * factor + win_height / 2
    
    return int(x), int(y)
 Transforms this 3D point to 2D using a perspective projection. 
Transforms this 3D point to 2D using a perspective projection.
Transforms this 3D point to 2D using a perspective projection .
def project25d(wx, wy, wz, win_width, win_height, fov=90.0, viewer_distance=0):
    factor = fov / (viewer_distance + wz)
    x = wx * factor + win_width / 2
    y = wy * factor + win_height / 2
    return int(x), int(y)
def project25d ( wx , wy , wz , win_width , win_height , fov = 90.0 , viewer_distance = 0 ) : factor = fov / ( viewer_distance + wz ) x = wx * factor + win_width / 2 y = wy * factor + win_height / 2 return int ( x ) , int ( y )
Transforms this 3D point to 2D using a perspective projection.
Transforms this 3D point to 2D using a perspective projection .
""" Transforms this 3D point to 2D using a perspective projection. """
wx
wy
wz
win_width
win_height
fov
viewer_distance