```
matrix3 dihedral(vector a, vector b)
```

Computes the rotation matrix which rotates the vector `a` onto the vector `b`.

```
vector4 dihedral(vector a, vector b)
```

Computes the quaternion which rotates the vector `a` onto the vector `b`.

matrix | |

quaternion |