728x90
728x170
Vector Operations
Scalar vs. Vector

- Scalar : a quantity, such as time or temperature, that has magnitude(규모) but not direction.
- Vector : a variable quantity, such as force, that has size and direction.
Scalar vs. Vector vs. Matrix

Addition and Scalar Multiplication
- Let a and b be 3D Vectors and s is a scalar value.

- Vector Addition

- Vector-Scalar Multiplication

Vector Length (Magnitude)

Unit Vector
- A Unit Vector is any vector with a length of one(1).
- A Unit vector is often indicated with a hat as in ˆv
- Examples
- ˆe=(1,0,0)
- ˆa=(√13,√13,√13)
Normalizing
- Normalizing a vector is to divide the vector by its length to create a unit vector.
![]() |
![]() |
Questions

Dot Product, a·b
- Sometimes called Inner Product or Scalar Product
- The result is Scalar
![]() |
![]() |
Questions

Cross Product, a×b
- Sometimes called Vector Product
- The result is new Vector
- The result vector is perpendicular(직각의) to both a and b.
![]() |
![]() |
![]() |
Questions

Normal Vector
- The Normal Vector to a surface is a vector which is perpendicular(직각의) to the surface at a given point.
- The length of a Normal Vector is always 1 (Unit Vector)

Question

Matrix-Vector Multiplication

Matrix-Matrix Multiplication

Summary

728x90
그리드형(광고전용)
'Computer Graphics' 카테고리의 다른 글
[Computer Animation] Slerp(Spherical Linear Interpolation) (0) | 2022.04.10 |
---|---|
[Computer Animation] 3D Rotation and Orientation (0) | 2022.04.10 |
[Computer Animation] 2D Rotation and Orientation (0) | 2022.04.03 |
[Computer Animation] Linear Interpolation (0) | 2022.03.26 |
[Computer Animation] Geometric Transformations (0) | 2022.03.26 |
[Computer Animation] Point and Vector (Affine Geometry) (0) | 2022.03.15 |
[Computer Animation] History of Animation (0) | 2022.03.08 |
[Computer Animation] Computer Animation (0) | 2022.03.03 |