UCF CAP 6721 Ray Tracing Test 1 Flashcards


Set Details Share
created 3 months ago by Angel_22
updated 3 months ago by Angel_22
show moreless
Page to share:
Embed this setcancel
COPY
code changes based on your size selection
Size:
X
Show:

1
card image

understand this roughly

understand this roughly

2

Right handed or left handed coord system

Lay hand flat along x axis curl fingers to y then which ever thumb points in the direction of z is the handedness

3

Vectors only consist of what?

Direction and magnitude where magnitude is length

4

How to generate a vector between two points?

Remember it as destination minus source, if we held a rubber band at a destination and pulled it to the source it would snap to destination and that's the direction of the vector.

5

How to do dot product of two vectors u and v, and what does it do?

u dot v = xu*xv + yu*yv + zu*zv, notice! this produces a scaler value not another vector

The equation is equal to ||u|| ||v|| cos(θ) when the angle is 0 meaning the vectors are overlapping cos(0) is 1, think unit vector, if the angle is 90 the cos(90) produces 0. the closer to 1 the more they overlap.

If the magnitudes are 1 and the angle is small we can get an equivalent dot product to two vectors with almost 90 degrees if the magnitudes are large.

6

what happens when you dot a vector with itself

you get the distance squared, so if you need its length/magnitude dot it with itself then square root it