pythonpython-3.xvectorcompasscross-product# Given two vectors, use the cross product to create a set of three orthonormal vectors

Can anyone help me with this:

Given two vectors, use the cross product to create a set of three orthonormal vectors:

```
from compas.geometry import cross_vectors
from compas.geometry import angle_vectors
import math as m
v1 = [1,2,3]
v2 = [4,5,6]
```

Replace... and fill in there:

```
x1 = #...
x2 = #...
x3 = #...
print(x1)
print(x2)
print(x3)
print(m.degrees(angle_vectors(x1, x2)))
print(m.degrees(angle_vectors(x1, x3)))
print(m.degrees(angle_vectors(x2, x3)))
```

Solution

Given `A`

and `B`

, two independent vectors, a set of 3 orthogonal vectors can be obtained like this:

`C = A x B`

`D = A x C`

`A`

, `C`

, `D`

are orthogonal and span the 3D space

Normalize if you want an `orthonormal`

:

`A/|A|`

, `C/|C|`

, `D/|D|`

I'll let you sort the right and left hand chirality.

- return the name of the row(first column) of the maximum difference between two columns
- Pandas: Drop duplicate but consecutive rows and keep the first row within group
- Getting user ID in TwitchIO
- Getting error while making a dropdown menu for discord bot
- Get HTML table row data to Flask function
- How to graph rolling average dated-expenses per category?
- Reversed cumulative sum of a column in pandas.DataFrame
- How to combine a function, for outputting a star pattern, with an input loop
- print "Düsseldorf" with Python
- Data scraping from Vivino.com
- Calculating the average of a specific row with loc, loc is not finding the row value
- How to change a range of RGB colors to Red with OpenCV Python?
- How to change black color to Red with OpenCV Python?
- Whats the fastest method for iou in numpy?
- how to print the minimal rectangular in python?
- Implementing a Custom Neural Network from Scratch in Python
- How to efficiently parse a large XML file in Python?
- unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed with ChromeDriver Selenium
- solve rectangular matrix in python to get solution with arbitrary parameters
- Python 3 typing - list of classes
- How do I get doctest to run with examples in markdown codeblocks for mkdocs?
- Pandas rolling averages for dates after group by
- memoize to disk - python - persistent memoization
- Importing a shared object in python using pybind11
- How to read pickle file?
- How to force Sqlalchemy to point to a schema different from the default schema for a connection string
- How to calculate euclidean distance between 2D and 3D tensors in Pytorch
- How to avoid "CUDA out of memory" in PyTorch
- Boolean argument for script
- How to reduce mean ignore padded rows in 3D tensor