static public NFMsg.Vector2 NFToPB(NFVector2 value) { NFMsg.Vector2 vector = new NFMsg.Vector2(); vector.x = value.X(); vector.y = value.Y(); return(vector); }
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); }