Get vector position projected on line

1 reply · 1K views · last reply
twoski
Messages
177
Reaction score
2
Let's say i have a set of lines (denoted in the image as connected at the blue dots) and a rectangle with maxs and mins known (denoted with orange dots).

I want to project from the mins of my rectangle such that i get a point on the line below it (the green dot). Furthermore, this needs to be a general solution (ie if the shapes were all rotated 45 degrees i'd still get the same results).

There must be some trick with cross products or something that I'm not seeing here, any insights?

Here is the picture to help make it clear.

Diagram of a polyline of black segments with blue endpoints, a black rectangle above it with orange corner points, and a red vertical line dropping from the lower orange point to a green point on the polyline.
 
What are the "maxs and mins" of a rectangle? How do the two orange dots define these? How would this work if "the shapes were all rotated 45 degrees"?

This is nothing to do with differential geometry.