示例#1
0
        public static Vetor3 operator -(Vetor3 a, Vetor3 b)
        {
            Vetor3 ret = (Vetor3)a.NovaInstancia();

            ret.X = a.X - b.X;
            ret.Y = a.Y - b.Y;
            ret.Z = a.Z - b.Z;
            return(ret);
        }
示例#2
0
        public static Vetor3 operator /(Vetor3 a, float b)
        {
            Vetor3 ret = (Vetor3)a.NovaInstancia();

            ret.X = a.X / b;
            ret.Y = a.Y / b;
            ret.Z = a.Z / b;
            return(ret);
        }
示例#3
0
        public static Vetor3 operator +(Vetor3 a, Vetor3 b)
        {
            Vetor3 ret = new Vetor3
            {
                X = a.X + b.X,
                Y = a.Y + a.Y,
                Z = a.Z + a.Z
            };

            return(ret);
        }