SetX() public method

public SetX ( float x ) : void
x float
return void
示例#1
0
        public static NFVector2 sub(NFVector2 va, NFVector2 vb)
        {
            NFVector2 vector = new NFVector2();

            vector.SetX(va.X() - vb.X());
            vector.SetY(va.Y() - vb.Y());
            return(vector);
        }
示例#2
0
        static public NFVector2 PBToNF(NFMsg.Vector2 value)
        {
            NFVector2 vector = new NFVector2();

            vector.SetX(value.x);
            vector.SetY(value.y);

            return(vector);
        }
示例#3
0
 public static NFVector2 sub(NFVector2 va, NFVector2 vb)
 {
     NFVector2 vector = new NFVector2();
     vector.SetX(va.X() - vb.X());
     vector.SetY(va.Y() - vb.Y());
     return vector;
 }