paya.runtime.nodes.VectorProduct#
- class VectorProduct(*args, **kwargs)#
Inheritance
VectorProduct
ShadingDependNode
ShadingDependNode
DependNode
DependNode
PyNode
ProxyUnicode
- classmethod createAsCross(input1, input2, normalize=False, guard=False, inlineGate=None, name=None)#
Creates and configures a
vectorProduct
for 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
False
guard/g (bool) – switch the node to ‘No Operation’ when the input vectors are aligned in either direction; defaults to
False
inlineGate/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 toNone
name/n (str) – a name for the node; defaults to
None
- Returns
The configured node.
- Return type