Vector class: Objects of this class have several of 2D vector
implementations such dot product, adding, project and angle. It also
overloads many commom math operator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dot(self,
vector)
Return the dot product of two vectors |
source code
|
|
|
cross(self,
vector)
Return the cross product of two vectors |
source code
|
|
|
|
|
perpendicular(self)
Return the vector that is perpenticular of this |
source code
|
|
|
unit(self)
Return the vector's unit(length one) |
source code
|
|
|
projection(self,
vector)
Return the projection of this vector on another |
source code
|
|
|
angle(self,
vector=None)
Return the angle created by this vector and another of the vector
(1,0) if given None |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|