Check if vector is in between two other vectors on all three planes? (X, Y, Z)


I am trying to make something, and I have an eye trace converting to worldtolocal on an entity. I also have two other vectors on that entity though, x and y are different, but z is the same on both. Is there a way to detect if they player’s eye trace is in between these two vectors?
Thank you!

I don’t know, I feel like that’s not what he’s trying to do.

What are you trying to do anyway? According to your description it looks like some kind of screen the player can interact with.

It’s building via grid snap onto a model’s edge (without physgun, using eye trace)

[editline]6th March 2014[/editline]

WithinAABox seems like what I need, if I did eyetr.Entity:WorldToLocal(eyetr.HitPos), what would happen?

[editline]6th March 2014[/editline]

Basically if that trace goes through two opposite planes of the cubic area the player looks inside them

[editline]6th March 2014[/editline]

Or two planes in general, not just opposite

[editline]6th March 2014[/editline]

Actually no disregard this post I’m an idiot