SmtC: Show me the Code
Ole Peter Smith
Instituto de Matemática e Estatística
Universidade Federal de Goiás
http://www.olesmith.com.br

Matemática Computacional
Problemas resolvemos na hora!
Milagres demoram mais um pouco...
Provérbio dinamarquês
< Reflexão | Transformações | Affim >

Transformações Geométricas

Python Listing: ../Code/Transformation.py.
from Vector import *
from Matrix  import *

class Transformation():
    Dim=2
    
    #Matrix A and vector b: f(v)=A*v+n
    A=None
    b=None

    def __init__(self,A=[],b=[],dim=2):
        self.Dim=dim
        if (A): self.Dim=len(A)

        if (not A): self.A=Matrix_Identity(self.Dim)
        if (not b): self.A=b=Vector_O(self.Dim)

        return
  • Affim;
  • Linear;
  • Translação;
  • Rotação;
  • Ortogonal;
  • Escalonamento;
  • Projeção;
  • Reflexão;
  • Hipérbole.
< Reflexão | Transformações | Affim >
Messages:
0 secs.