#Syntax for checking if a location is in the vertical region between two coordinates

1 messages · Page 1 of 1 (latest)

dreamy surge
#

Is there an expression to check if a location is between two points ignoring the Y-axis? Or do I just have to manually check if it's within the coordinates' x and z? (I'm doing so to reduce time complexity, or is this small difference negligible?)

elfin fog
dreamy surge
#

I assume the built in is within simply checks both the x, y, and z?

dreamy surge
elfin fog
#

why tho?

elfin fog
#

skbee is the greatest addon

#

oh i see

dreamy surge
#

I'm using SkBee

#

I've timed it and checking if a point is in a world guard vertical-expanded region is much faster

#

Which surprised me

elfin fog
#

i think you have 2 choices:

  1. manually check
  2. change the y coordinates of those locations so that it will always be within the y
heavy cove
#

i'm surprised you found any difference at all

dreamy surge
heavy cove
#

your 'time complexity' (which this technically doesn't fall under, asymptotically) will hardly care too much

dreamy surge
#

But in my scenario it'll be run ~once a second so I'm trying to scrape off any unnecessary processing

heavy cove
#

eh once a second doesn't matter

#

not for something this small

dreamy surge
#

Aight, if I ever bottleneck in the future I'll come back and implement the function 🙂