Exemplo n.º 1
0
        public static Vector2 ModulateMatrixPosition(float index, Vector2Int layout, BoolVector2 center, BoolVector2 alternate)
        {
            float x = ModulateVectorPosition(index % layout.x, layout.x, center.x, alternate.x);
            float y = ModulateVectorPosition((int)index / layout.x, layout.y, center.y, alternate.y);

            return(new Vector2(x, y));
        }
Exemplo n.º 2
0
 public BooledVector2(BoolVector2 checks, Vector2 values)  : base(checks, new FloatVector2(values))
 {
 }
Exemplo n.º 3
0
 public BooledVector2(BoolVector2 checks, FloatVector2 values)  : base(checks, values)
 {
 }
Exemplo n.º 4
0
 public BooledTypedVector2(BoolVector2 checks, V values)
 {
     this.checks = checks;
     this.values = values;
 }