X() public method

public X ( ) : float
return float
Example #1
0
        static public NFMsg.Vector3 NFToPB(NFVector3 value)
        {
            NFMsg.Vector3 vector = new NFMsg.Vector3();
            vector.x = value.X();
            vector.y = value.Y();
            vector.z = value.Z();

            return(vector);
        }
Example #2
0
        public static NFVector3 sub(NFVector3 va, NFVector3 vb)
        {
            NFVector3 vector = new NFVector3();

            vector.SetX(va.X() - vb.X());
            vector.SetY(va.Y() - vb.Y());
            vector.SetZ(va.Z() - vb.Z());
            return(vector);
        }
Example #3
0
        public NFMsg.Vector3 NFToPB(NFVector3 value)
        {
            NFMsg.Vector3 vector = new NFMsg.Vector3();
            vector.X = value.X();
            vector.Y = value.Y();
            vector.Z = value.Z();

            return(vector);
        }
Example #4
0
    static public NFMsg.Vector3 NFToPB(NFVector3 value)
    {
        NFMsg.Vector3 vector = new NFMsg.Vector3();
        vector.x = value.X();
        vector.y = value.Y();
        vector.z = value.Z();

        return vector;
    }
Example #5
0
 public static NFVector3 add(NFVector3 va, NFVector3 vb)
 {
     NFVector3 vector = new NFVector3();
     vector.SetX(va.X() + vb.X());
     vector.SetY(va.Y() + vb.Y());
     vector.SetZ(va.Z() + vb.Z());
     return vector;
 }