Computer Graphics
Lecture 06
Previous Class
Ray Tracing
Viewing
Projection
Today’s Agenda
• Cross Product
• Plane
• Sphere
• Transformations
Cross Product
• The product of two vectors (a and b) is
another vector which is orthogonal to both
the vectors (a and b).
– The new vector is called Cross Product or Vector
Product of the two vectors.
– Right hand rule determines the direction of the
product.
3D Plane
• Linear combination of three points
3D Sphere
TRANSFORMATIONS
Matrix Algebra (A Review)
Matrix Algebra (A Review)
Scaling
• Scaling is achieved by multiplying each
graphic component by a scalar
• Scaling will be uniform if this scalar is same
for all components
• Different components are scaled differently,
scaling in uniform
Example
`
Scaling Operation
•
The matrix is called scaling matrix
2D Rotation
2D Rotation
Summary
• Cross Product
References
• Fundamentals of Computer Graphics Third
Edition by Peter Shirley and Steve Marschner
• Interactive Computer Graphics, A Top-down
Approach with OpenGL (Sixth Edition) by
Edward Angel.