New answers tagged

0

The goal is to project the vector onto the correct sides of the rectangle. Using the tangens function we're already halfway done. The rest is basic trigonometry. Input data Depending on how you store the rectangle, we have to transform the input data first. This method expects a rectangle that is defined solely by it's size (width w and height h). It's top ...


0

A good explanation of a solution can be found at http://geomalgorithms.com/a06-_intersect-2.html: 1) Use the dot-product to determine whether the triangle lies fully on one side of the plane and does not intersect the plane at all. 2) If there is an intersection, use a line-plane-intersection-algorithm for the two edges hitting the plane (algorithm on the ...



Top 50 recent answers are included