Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Trasformaciones Afines
Transformaciones Afines y su
representacin matricial
Created with novaPDF Printer (www.novaPDF.com). Please register to remove this message.
setToRotation(double theta)
Una rotacin del ngulo sobre el origen es
representado con la matriz:
[ cos() -sin()
0
]
[ sin() cos()
0
]
[
0
0
1
]
AffineTransform(double m00, double m10, double m01,
double m11, double m02, double m12)
AffineTransform(cos() , sin() , -sin(), cos(), o, 0)
AffineTransform(sx, 0, 0, sy, 0, 0)
Created with novaPDF Printer (www.novaPDF.com). Please register to remove this message.
Asignacin
Utilizando matrices grafica las figuras de:
Created with novaPDF Printer (www.novaPDF.com). Please register to remove this message.
Logo Escalar
TriForce
Composicin de transformaciones
Composicin de
Transformaciones Afines
Created with novaPDF Printer (www.novaPDF.com). Please register to remove this message.
void concatenate(AffineTransformtx)
void preConcatenate(AffineTransformtx)
Created with novaPDF Printer (www.novaPDF.com). Please register to remove this message.
Asignacin
Utilizando composicin de transformaciones
grafica las figuras de:
Logo Escalar
TriForce
Por ejemplo:
AffineTransformtransform = new AffineTransform();
transform.rotate(Math.PI/3);
transform.scale(2, 0.3);
transform.translate(100, 200);
Bibliografa
H. Zhang, D. Liang. Computer Graphics using
JAVA 2D and 3D. (2007). Upper Saddle River,
EEUU: Pearson Prentice Hall.
L. Ammeraal. Computer Graphics for JAVA
programmers. (1998). New York, EEUU: Wiley.
Created with novaPDF Printer (www.novaPDF.com). Please register to remove this message.