What is an equation to determine if a 3d point

misurrosne

misurrosne

Answered question

2022-06-30

What is an equation to determine if a 3d point (x,y,z) is within a rectangular prism on a cartesian coordinate system? I want to check if a point is inside a rectangular prism.
e.g. the equation for a 2d rectangle is |x+y|+|x-y|<=2.

Answer & Explanation

Layla Love

Layla Love

Beginner2022-07-01Added 29 answers

The equation of a cube of side 2 centered at the origin is
P 1
where . denotes the maximum norm. This works in any dimensions.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?