paya.runtime.nodes.VectorProduct#
- class VectorProduct(*args, **kwargs)#
Inheritance
VectorProductShadingDependNodeShadingDependNodeDependNodeDependNodePyNodeProxyUnicode- classmethod createAsCross(input1, input2, normalize=False, guard=False, inlineGate=None, name=None)#
Creates and configures a
vectorProductfor cross product calculation, with options to prevent errors when the vectors are in-line.- Parameters
input1 (
tuple,list,str,Vector,Vector) – the first vectorinput2 (
tuple,list,str,Vector,Vector) – the first vectornormalize/nr (bool) – normalize the output; defaults to
Falseguard/g (bool) – switch the node to ‘No Operation’ when the input vectors are aligned in either direction; defaults to
FalseinlineGate/ig (bool) – if you have a precooked gate for alignment (typically the output of a comparison operation), provide it here to prevent redundant checks; if provided, will override guard to
True; defaults toNonename/n (str) – a name for the node; defaults to
None
- Returns
The configured node.
- Return type