Vector Literals
Vector Literals
Interestingly, flipping any Vector Reflection horizontally allows it to be subject to the same rules as Number Reflection. The direction of the head determines the direction, much like the tail of Vector Reflection.
Vector Rfln. +X/-X II (→ vector)
A head that sharply bends to the left will output a vector along the X axis.
Vector Rfln. +Z/-Z II (→ vector)
A head that sharply bends to the right will output a vector along the Z axis.
Vector Rfln. +1/-1 II (→ vector)
A head that slightly bends to the left will output a vector where all 3 components are the same.
First, I draw one of the eight shapes shown on the prior pages. Next, the angles following will modify a running count starting at 0.
Forward: Add 1
Left: Add 5
Right: Add 10
Sharp Left: Multiply by 2
Sharp Right: Divide by 2.
The clockwise version of the pattern, on the right of the other page, will negate the value at the very end. (The left-hand counter-clockwise version keeps the number positive).
Once I finish drawing, the a vector's pushed to the top of the stack.
Example 1
This pattern pushes (10, 0, 0).
Example 2
This pattern pushes (0, 7, 0): 5 + 1 + 1.
Example 3
This pattern pushes (0, 0, -32): negate 1 + 5 + 10 * 2.
Example 4
This pattern pushes (4.5, 4.5, 4.5): 5 / 2 + 1 + 1.
Patterns
Hextra Math
Hextra Constants
Hextra Logic