Skip to main content
2 of 2
Typos in the title and body are corrected
user64494
  • 3.5k
  • 14
  • 22

Intersection between a line and an n-dimensional parallelotope

Suppose that I have a line in an $n$-dimensional space described by $$ X=A+Bk, \quad \quad X,A,B \in \mathbb{R}^n, k \in \mathbb{R} $$ here $A$ is known and I want to find all the possible vectors $B$ such that this line has one and only one intersection with the set $S$ described by: $$S=\{ X \in \mathbb{R}^n \: | \: 0 \le X \le W\} $$ where $W \in \mathbb{R}_+^n$ and the inequalities are to be intended component-wise.

Is there any closed-form formula for such vectors $B$?