python-lottie 0.7.0+dev36100d3
A framework to work with lottie files and telegram animated stickers (tgs)
|
Public Member Functions | |
__init__ (self, *components) | |
__str__ (self) | |
__repr__ (self) | |
__len__ (self) | |
to_list (self) | |
__add__ (self, other) | |
__sub__ (self, other) | |
__mul__ (self, scalar) | |
__truediv__ (self, scalar) | |
__iadd__ (self, other) | |
__isub__ (self, other) | |
__imul__ (self, scalar) | |
__itruediv__ (self, scalar) | |
__neg__ (self) | |
__getitem__ (self, key) | |
__setitem__ (self, key, value) | |
__eq__ (self, other) | |
__abs__ (self) | |
float | length (self) |
dot (self, other) | |
clone (self) | |
lerp (self, other, t) | |
x (self) | |
x (self, v) | |
y (self) | |
y (self, v) | |
z (self) | |
z (self, v) | |
element_scaled (self, other) | |
cross (self, other) | |
polar_angle (self) | |
Public Attributes | |
components | |
y | |
x | |
Definition at line 9 of file nvector.py.
lottie.nvector.NVector.__init__ | ( | self, | |
* | components | ||
) |
Reimplemented in lottie.utils.color.Color.
Definition at line 10 of file nvector.py.
lottie.nvector.NVector.__abs__ | ( | self | ) |
Definition at line 72 of file nvector.py.
lottie.nvector.NVector.__add__ | ( | self, | |
other | |||
) |
Definition at line 25 of file nvector.py.
lottie.nvector.NVector.__eq__ | ( | self, | |
other | |||
) |
Definition at line 69 of file nvector.py.
lottie.nvector.NVector.__getitem__ | ( | self, | |
key | |||
) |
Definition at line 61 of file nvector.py.
lottie.nvector.NVector.__iadd__ | ( | self, | |
other | |||
) |
Definition at line 39 of file nvector.py.
lottie.nvector.NVector.__imul__ | ( | self, | |
scalar | |||
) |
Definition at line 47 of file nvector.py.
lottie.nvector.NVector.__isub__ | ( | self, | |
other | |||
) |
Definition at line 43 of file nvector.py.
lottie.nvector.NVector.__itruediv__ | ( | self, | |
scalar | |||
) |
Definition at line 54 of file nvector.py.
lottie.nvector.NVector.__len__ | ( | self | ) |
Definition at line 19 of file nvector.py.
lottie.nvector.NVector.__mul__ | ( | self, | |
scalar | |||
) |
Definition at line 31 of file nvector.py.
lottie.nvector.NVector.__neg__ | ( | self | ) |
Definition at line 58 of file nvector.py.
lottie.nvector.NVector.__repr__ | ( | self | ) |
Reimplemented in lottie.utils.color.Color.
Definition at line 16 of file nvector.py.
lottie.nvector.NVector.__setitem__ | ( | self, | |
key, | |||
value | |||
) |
Definition at line 66 of file nvector.py.
lottie.nvector.NVector.__str__ | ( | self | ) |
Definition at line 13 of file nvector.py.
lottie.nvector.NVector.__sub__ | ( | self, | |
other | |||
) |
Definition at line 28 of file nvector.py.
lottie.nvector.NVector.__truediv__ | ( | self, | |
scalar | |||
) |
Definition at line 36 of file nvector.py.
lottie.nvector.NVector.clone | ( | self | ) |
Reimplemented in lottie.utils.color.Color.
Definition at line 82 of file nvector.py.
lottie.nvector.NVector.cross | ( | self, | |
other | |||
) |
@pre len(self) == len(other) == 3
Definition at line 115 of file nvector.py.
lottie.nvector.NVector.dot | ( | self, | |
other | |||
) |
Definition at line 79 of file nvector.py.
lottie.nvector.NVector.element_scaled | ( | self, | |
other | |||
) |
Definition at line 112 of file nvector.py.
float lottie.nvector.NVector.length | ( | self | ) |
Definition at line 76 of file nvector.py.
lottie.nvector.NVector.lerp | ( | self, | |
other, | |||
t | |||
) |
Definition at line 85 of file nvector.py.
lottie.nvector.NVector.polar_angle | ( | self | ) |
@pre len(self) == 2
Definition at line 128 of file nvector.py.
lottie.nvector.NVector.to_list | ( | self | ) |
Definition at line 22 of file nvector.py.
lottie.nvector.NVector.x | ( | self | ) |
Definition at line 89 of file nvector.py.
lottie.nvector.NVector.x | ( | self, | |
v | |||
) |
Definition at line 93 of file nvector.py.
lottie.nvector.NVector.y | ( | self | ) |
Definition at line 97 of file nvector.py.
lottie.nvector.NVector.y | ( | self, | |
v | |||
) |
Definition at line 101 of file nvector.py.
lottie.nvector.NVector.z | ( | self | ) |
Definition at line 105 of file nvector.py.
lottie.nvector.NVector.z | ( | self, | |
v | |||
) |
Definition at line 109 of file nvector.py.
lottie.nvector.NVector.components |
Definition at line 11 of file nvector.py.
lottie.nvector.NVector.x |
Definition at line 132 of file nvector.py.
lottie.nvector.NVector.y |
Definition at line 132 of file nvector.py.