Two related questions for computer graphics people:

1. is it true that ray/line/whatever intersection tests are common in interviews?

2. how common are questions of this nature, where you have equations memorized?🤔

(boosts appreciated pls)

@ruba

1. yes, super common

2. they're not really about memorizing equations, more about showing you have a working grasp of 3d maths and basic algebraic operations - if you're comfortable with vectors, dot product, cross product you can likely get to the answer, interviewers are looking to hear your thought process

@im @ruba yeah, basically this. In computer graphics you are kinda expected to know what vectors and especially dot products among them are. Since like 90% of all graphics is dot products, if you squint :)

And if you *really* know what dot products are, then various intersection/distance things you can derive (slowly) out of that without having to "memorize" any of them.

@aras @im @ruba yeah. DotProduct math is a “core competency”. Also true for gameplay programming.

RaySphere should be trivial. More complex should be derivable in an interview context. Especially with interviewer hints.

@forrestthewoods I'm wondering if there's another way to demonstrate it than to write out intersection tests in an interview 🤔 it's a tense situation and looking at the steps: https://gamemath.com/book/geomtests.html while I think I can reason through them sitting at home, I think they'd fly out the window in an interview
Geometric Tests - 3D Math Primer for Graphics and Game Development

@ruba interviews suck. no one knows how to do them well. and yet it’s all anyone does. But that’s a whole other story! :(