SetY() public method

public SetY ( float y ) : void
y float
return void
Example #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);
        }
Example #2
0
        static public NFVector2 PBToNF(NFMsg.Vector2 value)
        {
            NFVector2 vector = new NFVector2();

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

            return(vector);
        }
Example #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;
 }