2.4 Exercises 45
Describing positions and movements in terms of vectors is fine, but to make a
physics engine, we’ll need to begin to link the two, that is, to encode into our physics
engine the laws of physics that say how position, movement and time are connected.
That is the subject of Chapter 3.
2.4 Exercises
Ex ercise 2.1
Decompose the follo wing vector
⎡
⎢
⎣
2
−2
−2
⎤
⎥
⎦
into its magntiude and direction.
Ex ercise 2.2
(a) Calculate the scalar product:
⎡
⎢
⎣
3
1
2
⎤
⎥
⎦
·
⎡
⎢
⎣
0
2
−1
⎤
⎥
⎦
(b) What does the result of (a) tell us about the angle between the two vectors?
Ex ercise 2.3
Calculate the scalar product of a vector with itself.
(a) Which other method that we have defined corresponds to this value?
(b) Is it more or less efficient to calculate this value using a scalar ...