If point in tilted cube.

  • Thread starter DHack
  • Start date
  • #1
2
0
I'm trying to figure out if a point is in a cube that could be tilted in any direction.
How would I do it? I can get anything you need for this problem.

Thanks in advance.
 

Answers and Replies

  • #2
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
9,970
134
I assume your cube is of fixed dimensions, but free to rotate/tilt about any of its initial edges/corners?
 
  • #3
2
0
I assume your cube is of fixed dimensions, but free to rotate/tilt about any of its initial edges/corners?

Yep.
 
  • #4
1,233
18
I don't fully understand the question.

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.
 

Related Threads on If point in tilted cube.

  • Last Post
Replies
9
Views
3K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
3
Views
786
  • Last Post
Replies
1
Views
7K
  • Last Post
Replies
7
Views
1K
  • Last Post
Replies
1
Views
6K
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
8
Views
3K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
3
Views
3K
Top