Section 02 Linear Algebra Part - 2
Section 02 Linear Algebra Part - 2
Section 02
Computer Graphics
Dr Adel Khaled
Outline
• Vectors: Cross Product
• Matrices
• Matrix Addition and Scalar Multiplication
• Matrix Properties
• Matrix Multiplication
• Transpose of a Matrix
• Assignment 02
Vectors: Cross Product
Here a and d are called the diagonal elements and b and c are the nondiagonal elements. Thus,
the determinant is the product ad of the diagonal elements minus the product bc of the
nondiagonal elements, but vice versa for the negative of the determinant.
Vectors: Cross Product
Vectors: Cross Product
Vectors: Cross Product
Two important properties of the cross product are contained in the following theorem.
Vectors: Cross Product
The length of the resulting vector is related to sin ϕ:
Note that there are only two possible directions for such a vector. By definition, the vectors in the direction of
the x-, y- and z-axes are given by
and we set as a convention that x × y must be in the plus or minus z direction. The choice is somewhat
arbitrary, but it is standard to assume that
z = x × y.
Vectors: Cross Product
• Because of the sin ϕ property, we also know that a vector cross itself is the zero vector, so x × x = 0 and so
on.
• Note that the cross product is not commutative, i.e., x × y = y × x.
Vectors: Cross Product
if we put x and y on a sidewalk, with x pointing east and y pointing
north, then does z point up to the sky or into the ground? The usual
convention is to have z point to the sky. This is known as a right-
handed coordinate system.
This involves the use of orthonormal bases, which are essential for defining how objects are positioned
and oriented in a three-dimensional space.
Matrices
A matrix A is a rectangular array of scalars usually presented in the following form:
Matrices