1
$\begingroup$

Given are 2 ordered and noncollinear triples $(x_1,x_2,x_3)$ and $(y_1,y_2,y_3)$ where each $x_i$ and $y_i$ is a vector in $\mathbb{R}^n$. How can be determined whether the orientations of the triples are the same?

It is clear that the orientation depends on a reference system. Do avoid the definition of a reference system only the relative orientation between the triples shall be compared. For points in $\mathbb{R}^2$ and $\mathbb{R}^3$ we can calculate for the two sets their cross products $c_x,c_y$ and check by the dot product if $c_x,c_y$ show in the same direction.

In $\mathbb{R}^2$:

$$c_x=\begin{bmatrix} x_2^1-x_1^1\\ x_2^2-x_1^2\\ 0 \end{bmatrix} \times \begin{bmatrix} x_3^1-x_1^1\\ x_3^2-x_1^2\\ 0 \end{bmatrix} , c_y=\begin{bmatrix} y_2^1-y_1^1\\ y_2^2-y_1^2\\ 0 \end{bmatrix} \times \begin{bmatrix} y_3^1-y_1^1\\ y_3^2-y_1^2\\ 0 \end{bmatrix} $$

and in $\mathbb{R}^3$: $$c_x=\begin{bmatrix} x_2^1-x_1^1\\ x_2^2-x_1^2\\ x_2^3-x_1^3 \end{bmatrix} \times \begin{bmatrix} x_3^1-x_1^1\\ x_3^2-x_1^2\\ x_3^3-x_1^3 \end{bmatrix} , c_y=\begin{bmatrix} y_2^1-y_1^1\\ y_2^2-y_1^2\\ y_2^3-y_1^3 \end{bmatrix} \times \begin{bmatrix} y_3^1-y_1^1\\ y_3^2-y_1^2\\ y_3^3-y_1^3 \end{bmatrix} $$

\begin{align} \text{sign}\left(\langle c_x,c_y\rangle\right) \begin{cases}>0 \quad \text{same orientation}\\ <0 \quad \text{different orientation,} \end{cases} \end{align}

where $\langle c_x,c_y\rangle$ ist the dot product.

$\endgroup$
4
  • 1
    $\begingroup$ This could just be a gap in my knowledge, but does the question even make sense if the two sets don't have the same span? $\endgroup$
    – JonathanZ
    Sep 17, 2022 at 14:01
  • $\begingroup$ @JonathanZsupportsMonicaC : refer to my answer $\endgroup$
    – G Cab
    Oct 20, 2022 at 23:52
  • 2
    $\begingroup$ In $R^3$, I think the relation "has the same orientation" based on your definition isn't even transitive. That's not a very good definition of orientation. $\endgroup$
    – JonathanZ
    Oct 21, 2022 at 0:48
  • $\begingroup$ Possibly of interest $\endgroup$ Oct 21, 2022 at 16:52

2 Answers 2

3
$\begingroup$

A $k$-frame in $\mathbb{R}^d$ is a $k$-tuple $(v_1,\cdots,v_k)$ of vectors $v_1,\cdots,v_k\in\mathbb{R}^d$ whose span has dimension $k$. If $k$ is unspecified, a "frame" in $\mathbb{R}^d$ is a $d$-frame.

The space of all $k$-frames in $\mathbb{R}^d$ is empty if $k>d$, has two components if $k=d$, and has one component of $k<d$. In other words, if $k=d$ every pair of frames is related by either an orientation-preserving or orientation-reversing transformation, whereas if $k<d$ every pair of $k$-frames is related by a rotation (an orientation-preserving transformation).

This is because we can rotate things "around" the $k$-dimensional subspace using the ambient extra $(n-k)$-dimensions. For example, in 2D, $(e_1,e_2)$ and $(e_2,e_1)$ have opposite orientations, but are related by a $180^\circ$ rotation around the axis between them in 3D, so in 3D they don't really have coordinate-independent "orientations" per se.


mr_e_man points out we can define the relative orientation for "most" pairs of same-dimension subspaces by orthogonally projecting from one to the other. This projection, restricted to the subspace, either preserves or reverses orientation. Indeed, the precise factor by which it distorts signed volumes (including potential negation) is calculated by the Grammian determinant, which gives the inner product of wedges. mr_e_man talks about this in his answer, and I generalize it in a previous answer here.

$\endgroup$
2
  • 1
    $\begingroup$ Evidently the OP is using a different notion of orientation. Any $k$-dimensional subspace can be projected onto any other $k$-dimensional subspace. If this is an isomorphism (not reducing the dimension below $k$), then the two sets of vectors can be compared as two bases for the subspace, and we can apply the usual definition of orientation. $\endgroup$
    – mr_e_man
    Oct 21, 2022 at 0:33
  • $\begingroup$ @mr_e_man Good point. That wasn't clear to me when I read the OP but I see that may be what they mean, in which case you answered that. I also generalized that answer here. $\endgroup$
    – anon
    Oct 21, 2022 at 1:16
1
$\begingroup$

Use the wedge product instead of the cross product. https://www.av8n.com/physics/clifford-intro.htm

First let $u_1=x_1-x_3$, and $u_2=x_2-x_3$, and $v_1=y_1-y_3$, and $v_2=y_2-y_3$, to simplify the notation.

$$X=u_1\wedge u_2$$ $$Y=v_1\wedge v_2$$

The bivector $X$ represents the 2D plane containing the three points $x_1,x_2,x_3$. Similarly for $Y$.

Take the inner product of the two bivectors:

$$X^\sim=u_2\wedge u_1$$ $$X^\sim\bullet Y=(u_2\wedge u_1)\bullet(v_1\wedge v_2)$$ $$=(u_1\cdot v_1)(u_2\cdot v_2)-(u_1\cdot v_2)(u_2\cdot v_1)$$

This is positive if they have the same orientation, and negative if they have opposite orientations.

$\endgroup$
3
  • $\begingroup$ I don't fully understand this, but it looks like this inner product could be equal to $0$. Does that seem possible to you? $\endgroup$
    – JonathanZ
    Oct 21, 2022 at 0:41
  • 1
    $\begingroup$ Yes, it's certainly possible, just as in the OP $\langle c_x,c_y\rangle=0$ is possible. $\endgroup$
    – mr_e_man
    Oct 21, 2022 at 0:42
  • $\begingroup$ Yeah, the OP is wrong in $R^3$. $\endgroup$
    – JonathanZ
    Oct 21, 2022 at 0:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .