python-lottie  0.6.10+dev2509936
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.nvector.NVector Class Reference
Inheritance diagram for lottie.nvector.NVector:
[legend]

Public Member Functions

def __init__ (self, *components)
 
def __str__ (self)
 
def __repr__ (self)
 
def __len__ (self)
 
def to_list (self)
 
def __add__ (self, other)
 
def __sub__ (self, other)
 
def __mul__ (self, scalar)
 
def __truediv__ (self, scalar)
 
def __iadd__ (self, other)
 
def __isub__ (self, other)
 
def __imul__ (self, scalar)
 
def __itruediv__ (self, scalar)
 
def __neg__ (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def __eq__ (self, other)
 
def __abs__ (self)
 
float length (self)
 
def dot (self, other)
 
def clone (self)
 
def lerp (self, other, t)
 
def x (self)
 
def x (self, v)
 
def y (self)
 
def y (self, v)
 
def z (self)
 
def z (self, v)
 
def element_scaled (self, other)
 
def cross (self, other)
 
def polar_angle (self)
 

Public Attributes

 components
 

Detailed Description

Definition at line 9 of file nvector.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 10 of file nvector.py.

Member Function Documentation

◆ __abs__()

def lottie.nvector.NVector.__abs__ (   self)

Definition at line 72 of file nvector.py.

◆ __add__()

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

Definition at line 25 of file nvector.py.

◆ __eq__()

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

Definition at line 69 of file nvector.py.

◆ __getitem__()

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

Definition at line 61 of file nvector.py.

◆ __iadd__()

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

Definition at line 39 of file nvector.py.

◆ __imul__()

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

Definition at line 47 of file nvector.py.

◆ __isub__()

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

Definition at line 43 of file nvector.py.

◆ __itruediv__()

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

Definition at line 54 of file nvector.py.

◆ __len__()

def lottie.nvector.NVector.__len__ (   self)

Definition at line 19 of file nvector.py.

◆ __mul__()

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

Definition at line 31 of file nvector.py.

◆ __neg__()

def lottie.nvector.NVector.__neg__ (   self)

Definition at line 58 of file nvector.py.

◆ __repr__()

def lottie.nvector.NVector.__repr__ (   self)

Reimplemented in lottie.utils.color.Color.

Definition at line 16 of file nvector.py.

◆ __setitem__()

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

Definition at line 66 of file nvector.py.

◆ __str__()

def lottie.nvector.NVector.__str__ (   self)

Definition at line 13 of file nvector.py.

◆ __sub__()

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

Definition at line 28 of file nvector.py.

◆ __truediv__()

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

Definition at line 36 of file nvector.py.

◆ clone()

def lottie.nvector.NVector.clone (   self)

Reimplemented in lottie.utils.color.Color.

Definition at line 82 of file nvector.py.

◆ cross()

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

Definition at line 115 of file nvector.py.

◆ dot()

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

Definition at line 79 of file nvector.py.

◆ element_scaled()

def 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()

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

Definition at line 85 of file nvector.py.

◆ polar_angle()

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

Definition at line 128 of file nvector.py.

◆ to_list()

def lottie.nvector.NVector.to_list (   self)

Definition at line 22 of file nvector.py.

◆ x() [1/2]

def lottie.nvector.NVector.x (   self)

Definition at line 89 of file nvector.py.

◆ x() [2/2]

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

Definition at line 93 of file nvector.py.

◆ y() [1/2]

def lottie.nvector.NVector.y (   self)

Definition at line 97 of file nvector.py.

◆ y() [2/2]

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

Definition at line 101 of file nvector.py.

◆ z() [1/2]

def lottie.nvector.NVector.z (   self)

Definition at line 105 of file nvector.py.

◆ z() [2/2]

def 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.


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