vector
Discussion List
-
rotate a vector and points
hello, how can I rotate vectors and points around a line with a given angle in FS? (to move them by the angle given) as opTransform only accepts bodies....
-
Efficient way to "re-align" a vector?
This one is not critical as I figured out ow to get what I wanted... However the method I am using seems very rube goldberg-ish and I am just curious about the "proper" way to do this! My scenario is that I have an vector defined as "global" x,y,z that I want to use to transform some bodies, however the bodies may be in a…
-
"normalize" documentation
It looks like the documentation for the function "normalize" has been updated recently. I find it rather difficult to interpret.....if I had not used it several times in the past, it would be difficult to figure out which function would give me the Direction of a vector. This could maybe use some clarification? Perhaps…
-
How do I use the centroid as a vector?
I found the centroid of my sketch with this:var centroid = evApproximateCentroid(context, { //Finds the centroid of the selected face. "entities" : definition.selectedFace }); The hint says it returns a vector, but when I try to use the variable "centroid" as a position in my sketch point, it says it's not a vector. and…
-
Is there a way to transform a 3D point (map) into a 3D vector ?
Hello there, I am looking for a way to transform a 3D point (map) into a vector in a feature script. How can I do it ?
-
How to add elements to a vector/matrix?
Is it possible to add elements to an existing vector in FeatureScript? Let's say I have var x = zeroVector(3) I would like to do something like this: x[4]=1 and get x=[0 0 0 1] What is the proper way of getting this done?