示例#1
0
 // v2 mirror
 public static Vector2 MirrorX(this Vector2if vect, float mirrorAxis)
 {
     vect.xf -= mirrorAxis;
     vect.xf  = -vect.xf;
     vect.xf += mirrorAxis;
     return(vect);
 }
示例#2
0
文件: Key2.cs 项目: wjk17/WSA
 public Key2(Vector2 v, Vector2 inT, Vector2 outT, KeyMode inMode, KeyMode outMode)
 {
     vector       = v;
     inTan        = inT;
     outTan       = outT;
     this.inMode  = inMode;
     this.outMode = outMode;
 }
示例#3
0
文件: Key2.cs 项目: wjk17/WSA
        public void SetVector(Vector2 v)
        {
            var os = v - vector;

            vector  = v;
            outTan += os;
            inTan  += os;
        }
示例#4
0
 public static bool IsMirrorX(this Vector2if a, Vector2if b)
 {
     return(a.xf.Approx(-b.xf) && a.yf.Approx(b.yf));
 }