Model.vectorcreate_xproduct#
- Model.vectorcreate_xproduct(basenode, vector_a, vector_b, magnitude)#
Creates a vector entity by using the cross product of two other vectors.
- Parameters:
basenode (Entity) – The object describing the node entity where the base of the result is located after it is created.
vector_a (Entity) – The object describing the first vector entity.
vector_b (Entity) – The object describing the second vector entity.
magnitude (double) – Magnitude of resulting vector.
Example#
Create a vector by use the cross product of vector with ID 2 and ID 3 , located at node with ID 1 and a magnitude of 3.0#import hm import hm.entities as ent model = hm.Model() model.vectorcreate_xproduct( basenode=ent.Node(model, 1), vector_a=ent.Vector(model, 2), vector_b=ent.Vector(model, 3), magnitude=3.0, )