A 2D column vector.
|
__getstate__(self,
additional_ignore=[ ] )
Returns a dictionary representation of self, with
dict(var=value [, ...]) |
source code
|
|
|
__setstate__(self,
dict)
Takes each variable=value pair in the dictionary and sets the
attributes based on them |
source code
|
|
b2Vec2
|
__init__(self)
__init__(self, float32 x, float32 y) -> b2Vec2 __init__(self,
b2Vec2 other) -> b2Vec2 |
source code
|
|
|
|
|
tuple(self)
Return the vector as a tuple (x,y) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dot(self,
v)
Dot product with v (list/tuple or b2Vec2) |
source code
|
|
|
__swig_destroy__(...)
delete_b2Vec2(b2Vec2 self) |
|
|
|
|
|
|
|
__neg__(...)
b2Vec2___neg__(b2Vec2 self) -> b2Vec2 |
source code
|
|
|
add_vector(...)
b2Vec2_add_vector(b2Vec2 self, b2Vec2 v) |
source code
|
|
|
sub_vector(...)
b2Vec2_sub_vector(b2Vec2 self, b2Vec2 v) |
source code
|
|
|
mul_float(...)
b2Vec2_mul_float(b2Vec2 self, float32 a) |
source code
|
|
|
|
|
|
|
|
|
|
|
__div__(...)
b2Vec2___div__(b2Vec2 self, float32 a) -> b2Vec2 |
source code
|
|
|
__mul__(...)
b2Vec2___mul__(b2Vec2 self, float32 a) -> b2Vec2 |
source code
|
|
|
__add__(...)
b2Vec2___add__(b2Vec2 self, b2Vec2 other) -> b2Vec2 |
source code
|
|
|
__sub__(...)
b2Vec2___sub__(b2Vec2 self, b2Vec2 other) -> b2Vec2 |
source code
|
|
|
__rmul__(...)
b2Vec2___rmul__(b2Vec2 self, float32 a) -> b2Vec2 |
source code
|
|
|
__rdiv__(...)
b2Vec2___rdiv__(b2Vec2 self, float32 a) -> b2Vec2 |
source code
|
|
|
div_float(...)
b2Vec2_div_float(b2Vec2 self, float32 a) |
source code
|
|