Package pyjsdl :: Module vector :: Class _Vector2

Class _Vector2

object --+    
         |    
     ??-13 --+
             |
            _Vector2

Vector2 - 2-dimensional vector.
Instance Methods
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
 
x(self)
 
y(self)
 
__repr__(self)
repr(x)

Inherited from unreachable: __add__, __bool__, __delitem__, __div__, __eq__, __floordiv__, __ge__, __getitem__, __getslice__, __gt__, __iadd__, __idiv__, __ifloordiv__, __imul__, __isub__, __iter__, __itruediv__, __le__, __len__, __lt__, __mul__, __ne__, __neg__, __nonzero__, __pos__, __radd__, __rdiv__, __rfloordiv__, __rmul__, __rsub__, __rtruediv__, __setitem__, __setslice__, __str__, __sub__, __truediv__, angle_to, as_polar, cross, distance_squared_to, distance_to, dot, elementwise, from_polar, is_normalized, length, length_squared, lerp, magnitude, magnitude_squared, normalize, normalize_ip, reflect, reflect_ip, rotate, rotate_ip, rotate_ip_rad, rotate_rad, scale_to_length, slerp, update

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

x(self)

 
Decorators:
  • @x.deleter

y(self)

 
Decorators:
  • @y.deleter

__repr__(self)
(Representation operator)

 
repr(x)
Overrides: object.__repr__
(inherited documentation)