- #1

- 2

- 0

How would I do it? I can get anything you need for this problem.

Thanks in advance.

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter DHack
- Start date

- #1

- 2

- 0

How would I do it? I can get anything you need for this problem.

Thanks in advance.

- #2

arildno

Science Advisor

Homework Helper

Gold Member

Dearly Missed

- 9,970

- 134

- #3

- 2

- 0

Yep.

- #4

- 1,233

- 18

Are you saying you have a cube with a known orientation (eg. you are given a unit vector normal to a surface, and the cube centre is fixed at (0, 0, 0)), and want to know if a general point (x, y, z) is in that cube?

Try to develop a method of rotating the coordinate system from the original one to one where the cube sides are perpendicular to the coordinate axes. Then all you need to do is transform your point to this system and ensure it is between each side along all three dimensions.

Share: