示例#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));
        }
示例#2
0
 public BooledVector2(BoolVector2 checks, Vector2 values)  : base(checks, new FloatVector2(values))
 {
 }
示例#3
0
 public BooledVector2(BoolVector2 checks, FloatVector2 values)  : base(checks, values)
 {
 }
示例#4
0
 public BooledTypedVector2(BoolVector2 checks, V values)
 {
     this.checks = checks;
     this.values = values;
 }