1
\$\begingroup\$

I have a box (non-rectangular cuboid?) and would like to convert it to a matrix such that when a point inside the box is multiplied by the matrix, a vector is returned that describes the relative position inside the box (very similar in regard to a camera's view and projection matrix)

The difference between this box and a camera frustum, is that the box vertices are defined by the points intersecting 4 rays from the center of two concentric spheres.

What's the formula for creating such a matrix?

\$\endgroup\$
  • \$\begingroup\$ Could you provide some visualisation? By "non-rectangular cuboid" do you mean a cube? \$\endgroup\$ – Mars Aug 17 '16 at 14:40
  • \$\begingroup\$ @Mars By non-rectangular cuboid I mean a six-sided convex polygon defined by 8 points (just like a cube) except that the faces are not rectangles. In this case, the faces should be trapezoids I think. \$\endgroup\$ – Zachary Burns Aug 17 '16 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.