Пример #1
0
        public VectorP Subtract(VectorP polarVec)
        {
            VectorP temp = new VectorP(angle, magnitude);

            temp.angle -= polarVec.angle;
            temp.magnitude -= polarVec.magnitude;

            return temp;
        }
Пример #2
0
        public VectorP Add(VectorP polarVec)
        {
            VectorP temp = new VectorP(angle, magnitude);

            temp.angle += polarVec.angle;
            temp.magnitude += polarVec.magnitude;

            return temp;
        }