Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3 2øªjëã@sNddlmZddlZddlZddlZdgZGdd„deƒZdd„Zdd„Z dS) é)ÚNumberNÚVectorcseZdZdZfZd3‡fdd„ Z‡fdd„Zdd„Zd d „Zd d „Z d d„Z e Z dd„Z dd„Z dd„ZeZdd„Zdd„Zdd„Zdd„Zedœdd„Z‡fd d!„Zd"d#„Zd$d%„ZeZd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„Zed0d1„ƒZ e j!d2d1„ƒZ ‡Z"S)4rzÛA math-like vector. Represents an n-dimensional numeric vector. ``Vector`` objects support vector addition and subtraction, scalar multiplication and division, negation, rounding, and comparison tests. Fcs2|dk rtjdtƒt|ƒtkr$|Stƒj||ƒS)NFz'the 'keep' argument has been deprecated)ÚwarningsÚwarnÚDeprecationWarningÚtyperÚsuperÚ__new__)ÚclsÚvaluesZkeep)Ú __class__©ú:/tmp/pip-build-_d5lkt3n/fonttools/fontTools/misc/vector.pyr s zVector.__new__cs|jj›dtƒjƒ›d�S)Nú(ú))r Ú__name__rÚ__repr__)Úself)r r rr szVector.__repr__csjtˆtƒr&sz#Vector._vectorOp..c3s|]}ˆ|ˆƒVqdS)Nr )rÚv)rÚotherr rr(s)Ú isinstancerÚlenÚAssertionErrorr ÚziprÚNotImplementedError)rrrr )rrrÚ _vectorOp#s   zVector._vectorOpcs.tˆtƒr$|j‡‡fdd„|DƒƒStƒ‚dS)Nc3s|]}ˆ|ˆƒVqdS)Nr )rr)rrr rr-sz#Vector._scalarOp..)rrr r)rrrr )rrrÚ _scalarOp+s zVector._scalarOpcs|j‡fdd„|DƒƒS)Nc3s|]}ˆ|ƒVqdS)Nr )rr)rr rr1sz"Vector._unaryOp..)r )rrr )rrÚ_unaryOp0szVector._unaryOpcCs|j|tjƒS)N)r ÚoperatorÚadd)rrr r rÚ__add__3szVector.__add__cCs|j|tjƒS)N)r r#Úsub)rrr r rÚ__sub__8szVector.__sub__cCs |j|tƒS)N)r Ú_operator_rsub)rrr r rÚ__rsub__;szVector.__rsub__cCs|j|tjƒS)N)r!r#Úmul)rrr r rÚ__mul__>szVector.__mul__cCs|j|tjƒS)N)r!r#Útruediv)rrr r rÚ __truediv__CszVector.__truediv__cCs |j|tƒS)N)r!Ú_operator_rtruediv)rrr r rÚ __rtruediv__FszVector.__rtruediv__cCs |jtjƒS)N)r"r#Úpos)rr r rÚ__pos__IszVector.__pos__cCs |jtjƒS)N)r"r#Úneg)rr r rÚ__neg__LszVector.__neg__)ÚroundcCs |j|ƒS)N)r")rr4r r rÚ __round__OszVector.__round__cst|tƒrt|ƒ}tƒj|ƒS)N)rÚlistÚtuplerÚ__eq__)rr)r r rr8Rs z Vector.__eq__cCs |j|ƒ S)N)r8)rrr r rÚ__ne__Xsz Vector.__ne__cCst|ƒS)N)Úany)rr r rÚ__bool__[szVector.__bool__cCstjtdd„|DƒƒƒS)Ncss|]}||VqdS)Nr )rÚxr r rrasz!Vector.__abs__..)ÚmathÚsqrtÚsum)rr r rÚ__abs__`szVector.__abs__cCst|ƒS)z;Return the length of the vector. Equivalent to abs(vector).)Úabs)rr r rÚlengthcsz Vector.lengthcCs |t|ƒS)z+Return the normalized vector of the vector.)rA)rr r rÚ normalizedgszVector.normalizedcCs,t|ƒt|ƒkst‚tdd„t||ƒDƒƒS)z[Performs vector dot product, returning the sum of ``a[0] * b[0], a[1] * b[1], ...``css|]\}}||VqdS)Nr )rrrr r rroszVector.dot..)rrr?r)rrr r rÚdotksz Vector.dotcCstjdtƒ|jƒS)NzAthe 'toInt' method has been deprecated, use round(vector) instead)rrrr5)rr r rÚtoIntssz Vector.toIntcCstjdtƒt|ƒS)NzPthe 'values' attribute has been deprecated, use the vector object itself instead)rrrr6)rr r rr zsz Vector.valuescCs tdƒ‚dS)Nz?can't set attribute, the 'values' attribute has been deprecated)ÚAttributeError)rr r r rr ƒs)F)#rÚ __module__Ú __qualname__Ú__doc__Ú __slots__r rr r!r"r%Ú__radd__r'r)r+Ú__rmul__r-r/r1r3r4r5r8r9r;Ú __nonzero__r@rBrCrDrEÚpropertyr ÚsetterÚ __classcell__r r )r rr s:   cCs tj||ƒS)N)r#r&)rrr r rr(Šsr(cCs tj||ƒS)N)r#r,)rrr r rr.Žsr.) Únumbersrr=r#rÚ__all__r7rr(r.r r r rÚs