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.
SVD
darren_13
Member, Developers Posts: 119 PRO
I have a vector which is the normal to a plane to create another plane x distance in the normal from the original plane I want to find the unit vector of the normal. I wanted to use svd but I can't figure how to use is where do I put the 'u' in svd? my code looks like this:
//Make Plane normal<div> var centerPlane = evFaceTangentPlane(context, {</div><div> "face" : definition.selectPlane,</div><div> "parameter" : vector(0.5, 0.5)</div><div> });</div><div> </div><div> var normal = centerPlane.normal</div>
Tagged:
0
Comments
svd (m is Matrix) returns map
Compute the singular value decomposition of a matrix, i.e.
s
,u
, andv
, wherem == u * s * v
and s is a diagonal matrix of singular values.where u would give me a unit vector? how would I set this up?
It would be really handy if I could view what my variables and constants contain like I do in matlab? because I find myself asking quite a lot of questions I could answer myself if I could see what is being created.
Thanks for your speedy response
Darren Lynch