M4 - Vectors Flashcards

1
Q

What is a Vector

A

an object that has both MAGNITUDE & DIRECTION

Just an x, y (z) value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a Vector represent?

A

absolute position
offset from another point
orientation of something

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the formula of vector subtraction

A

Direction = EndPoint - StartPoint

D = (Bx-Ax, By-Ay) //Move from A to B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can we move incrementally between two objects?

A

Interpolation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is interpolation?

A

Taking 2 data points, plus some ratio, and calculating an “in-between” value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a UNIT VECTOR?

A

A Vector with a magnitude of 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do we calculate “movement” vectors

A

Get direction vector (Target - Start)
Normalize that vector to magnitude of 1
Scale that vector by some speed/rate variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is interpolation, and what 3 pieces of data do we need to perform this calculation?

A

Start + Distance * Ratio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What’s the vector relative to by default?

A

The origin (0, 0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly