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 vector

  • input2 (tuple, list, str, Vector, Vector) – the first vector

  • normalize/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 to None

  • name/n (str) – a name for the node; defaults to None

Returns

The configured node.

Return type

VectorProduct