X() public method

public X ( ) : float
return float
示例#1
0
        static public NFMsg.Vector2 NFToPB(NFVector2 value)
        {
            NFMsg.Vector2 vector = new NFMsg.Vector2();
            vector.x = value.X();
            vector.y = value.Y();

            return(vector);
        }
示例#2
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);
        }
示例#3
0
        public NFMsg.Vector2 NFToPB(NFVector2 value)
        {
            NFMsg.Vector2 vector = new NFMsg.Vector2();
            vector.X = value.X();
            vector.Y = value.Y();

            return(vector);
        }
示例#4
0
    static public NFMsg.Vector2 NFToPB(NFVector2 value)
    {
        NFMsg.Vector2 vector = new NFMsg.Vector2();
        vector.x = value.X();
        vector.y = value.Y();

        return vector;
    }
示例#5
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;
 }