1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

If point in tilted cube.

  1. Mar 13, 2010 #1
    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.
  2. jcsd
  3. Mar 14, 2010 #2


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    Dearly Missed

    I assume your cube is of fixed dimensions, but free to rotate/tilt about any of its initial edges/corners?
  4. Mar 14, 2010 #3
  5. Mar 16, 2010 #4
    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.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: If point in tilted cube.
  1. It is tilting (Replies: 9)