Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Featurescript-Vector rounding
Hugh_Goodbody
Member Posts: 40 PRO
I am computing the dot product of some vectors to check for parallelism. I have run into a rounding error situation. What is the best way to round the vectors so that the values of the highlighted ones are the same?
0
Best Answer
-
konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭if checking parallelism is the only aim you can use parallelVectors() function from standard library
parallelVectors (vector1 is Vector, vector2 is Vector) returns boolean
Returns true if two vectors are parallel (within tolerance).
10
Answers
https://cad.onshape.com/FsDoc/library.html#ValueWithUnits
Onshape, Inc.
parallelVectors (vector1 is Vector, vector2 is Vector) returns boolean
Returns true if two vectors are parallel (within tolerance).