// v2 mirror public static Vector2 MirrorX(this Vector2if vect, float mirrorAxis) { vect.xf -= mirrorAxis; vect.xf = -vect.xf; vect.xf += mirrorAxis; return(vect); }
public Key2(Vector2 v, Vector2 inT, Vector2 outT, KeyMode inMode, KeyMode outMode) { vector = v; inTan = inT; outTan = outT; this.inMode = inMode; this.outMode = outMode; }
public void SetVector(Vector2 v) { var os = v - vector; vector = v; outTan += os; inTan += os; }
public static bool IsMirrorX(this Vector2if a, Vector2if b) { return(a.xf.Approx(-b.xf) && a.yf.Approx(b.yf)); }