python-lottie 0.7.0+dev36100d3
A framework to work with lottie files and telegram animated stickers (tgs)
Loading...
Searching...
No Matches
lottie.nvector.NVector Class Reference
Inheritance diagram for lottie.nvector.NVector:
[legend]

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
 

Detailed Description

Definition at line 9 of file nvector.py.

Constructor & Destructor Documentation

◆ __init__()

lottie.nvector.NVector.__init__ (   self,
components 
)

Reimplemented in lottie.utils.color.Color.

Definition at line 10 of file nvector.py.

Member Function Documentation

◆ __abs__()

lottie.nvector.NVector.__abs__ (   self)

Definition at line 72 of file nvector.py.

◆ __add__()

lottie.nvector.NVector.__add__ (   self,
  other 
)

Definition at line 25 of file nvector.py.

◆ __eq__()

lottie.nvector.NVector.__eq__ (   self,
  other 
)

Definition at line 69 of file nvector.py.

◆ __getitem__()

lottie.nvector.NVector.__getitem__ (   self,
  key 
)

Definition at line 61 of file nvector.py.

◆ __iadd__()

lottie.nvector.NVector.__iadd__ (   self,
  other 
)

Definition at line 39 of file nvector.py.

◆ __imul__()

lottie.nvector.NVector.__imul__ (   self,
  scalar 
)

Definition at line 47 of file nvector.py.

◆ __isub__()

lottie.nvector.NVector.__isub__ (   self,
  other 
)

Definition at line 43 of file nvector.py.

◆ __itruediv__()

lottie.nvector.NVector.__itruediv__ (   self,
  scalar 
)

Definition at line 54 of file nvector.py.

◆ __len__()

lottie.nvector.NVector.__len__ (   self)

Definition at line 19 of file nvector.py.

◆ __mul__()

lottie.nvector.NVector.__mul__ (   self,
  scalar 
)

Definition at line 31 of file nvector.py.

◆ __neg__()

lottie.nvector.NVector.__neg__ (   self)

Definition at line 58 of file nvector.py.

◆ __repr__()

lottie.nvector.NVector.__repr__ (   self)

Reimplemented in lottie.utils.color.Color.

Definition at line 16 of file nvector.py.

◆ __setitem__()

lottie.nvector.NVector.__setitem__ (   self,
  key,
  value 
)

Definition at line 66 of file nvector.py.

◆ __str__()

lottie.nvector.NVector.__str__ (   self)

Definition at line 13 of file nvector.py.

◆ __sub__()

lottie.nvector.NVector.__sub__ (   self,
  other 
)

Definition at line 28 of file nvector.py.

◆ __truediv__()

lottie.nvector.NVector.__truediv__ (   self,
  scalar 
)

Definition at line 36 of file nvector.py.

◆ clone()

lottie.nvector.NVector.clone (   self)

Reimplemented in lottie.utils.color.Color.

Definition at line 82 of file nvector.py.

◆ cross()

lottie.nvector.NVector.cross (   self,
  other 
)
@pre len(self) == len(other) == 3

Definition at line 115 of file nvector.py.

◆ dot()

lottie.nvector.NVector.dot (   self,
  other 
)

Definition at line 79 of file nvector.py.

◆ element_scaled()

lottie.nvector.NVector.element_scaled (   self,
  other 
)

Definition at line 112 of file nvector.py.

◆ length()

float lottie.nvector.NVector.length (   self)

Definition at line 76 of file nvector.py.

◆ lerp()

lottie.nvector.NVector.lerp (   self,
  other,
  t 
)

Definition at line 85 of file nvector.py.

◆ polar_angle()

lottie.nvector.NVector.polar_angle (   self)
@pre len(self) == 2

Definition at line 128 of file nvector.py.

◆ to_list()

lottie.nvector.NVector.to_list (   self)

Definition at line 22 of file nvector.py.

◆ x() [1/2]

lottie.nvector.NVector.x (   self)

Definition at line 89 of file nvector.py.

◆ x() [2/2]

lottie.nvector.NVector.x (   self,
  v 
)

Definition at line 93 of file nvector.py.

◆ y() [1/2]

lottie.nvector.NVector.y (   self)

Definition at line 97 of file nvector.py.

◆ y() [2/2]

lottie.nvector.NVector.y (   self,
  v 
)

Definition at line 101 of file nvector.py.

◆ z() [1/2]

lottie.nvector.NVector.z (   self)

Definition at line 105 of file nvector.py.

◆ z() [2/2]

lottie.nvector.NVector.z (   self,
  v 
)

Definition at line 109 of file nvector.py.

Member Data Documentation

◆ components

lottie.nvector.NVector.components

Definition at line 11 of file nvector.py.

◆ x

lottie.nvector.NVector.x

Definition at line 132 of file nvector.py.

◆ y

lottie.nvector.NVector.y

Definition at line 132 of file nvector.py.


The documentation for this class was generated from the following file: