Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

2d vector in python

#If you want to draw the vector in python use a GUI library like Pygame

#IF YOU HAVE Pygame: pygame.draw.line(surface, (r, g, b), (x1, y1), (x2, y2), width)

#A vector in python can be a list: vector = [x1, y1, x2, y2]
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #vector #python
ADD COMMENT
Topic
Name
5+4 =