I forgot, I meant to address the OP...
If I go to toss a ball to my son, my intention is not so much to throw the ball somewhere (he's only five years old...) but rather, to throw the ball so that it lands in his hand
So I look at the distance, feel the weight of the ball and then I make a guess.
This is not the process of my brain doing complex calculations in my subconscious.
It's trial and error.
Even Millions of years worth of trial and error.
Since early childhood, my brain has been absorbing knowledge on distances, judging depth or trajectories. Even now, 30 years later, I'm liable to misjudge.
It's because it's all trial and error based on my own lifetime of experience and all the lifetimes before me- through Genetic Encoding.
Genetic? What? What is this idiot talking about?
Well, I'm talking about spiders.
Take a spider, an orb weaver maybe, and watch is she spins a delicate and beautiful web. It's symmetrical, the strands are each the perfect distance from eachother.
Now, the spiders tiny brain is ...uh...well... tiny

Is that tiny bundle of nerves calculating complex mathematics that the spider does not know about?
Nope.
It's inherent behavior. Trial and error. Millions of years worth.
Take that spider and blast her with cold (So that the spinarettes stop producing silk) and she will continue the motions of weaving the web even though no silk is coming out. Poor dumb thing is following its programming.
We are like that too to some degree.
Like jumping out from behind a corner at someone and yelling. Their eyes get wide, some will scream. That's genetic encoding at work.
Some is more subtle, how a person walks or moves- but still genetic encoding. They don't think about it- the brain comes prewired that way from genes that have evolved from trial and error.
So the cat is relying not on mathematics, but on the experience of that cat, that cats genetic encoding and trial and error.