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