ReverseArray3 Op

ReverseArray3

Reverses an array with value triplets [x, y, z, ...]


<p>E.g. <code>[x1, y1, z1, ..., x9, y9, z9]</code> —&gt; <code>[x9, y9, z9, ..., x1, y1, z1]</code> or: <code>[1, 2, 3, 4, 5, 6]</code> —&gt; <code>[4, 5, 6, 1, 2, 3]</code> If the input array has a bad length (not dividable by 3), e.g. <code>[1, 2, 3, 4, 5, 6, 7]</code> (length:&nbsp;4) or <code>[1, 2, 3, 4, 5, 6, 7, 8]</code> (length: 5), the last values which cannot form a triple will be cut off, in both cases the reversed array would be <code>[4, 5, 6, 1, 2, 3]</code> (trimmed).</p> <p>If the array does not consist of triplets you probably want to use the regular <a href="/op/Ops.Array.ArrayReverse">Ops.Array.ArrayReverse</a> op.</p>


Full Name
  • Ops.Array.ReverseArray3
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


Array (Array)

<p>The Array you want to reverse (containing triplets)</p>

OUTPUT PORTS


Reversed Array (Array)

<p>The reversed Array</p>


Patches using ReverseArray3

  • Examples
  • Public
  • My Patches

Changelog


Ops.Array.Array3xReverse renamed to Ops.Array.ReverseArray3user avatarpandur - 2019-06-13 09:49
improvementCopy over array stride informationuser avatarpandur - 2024-05-08 17:23