⇷

## 3D Vector | Download 3dvector.py | |

## python, pyclass |

I'm using this python class to do calculation in a 3D world, I've added some handy functions such as distance, dot product, cross product, angle. Unlike default python array, you can + - * / the vectors ;

1

2

3

4

5

2

3

4

5

vector_1 = Vector3(0, 3, 1)

vector_2 = Vector3(4, 2, -1)

addition = vector_1 + vector_2

division = vector_1 / vector_2

# and so on..

If you have any questions... =)