示例#1
0
        public vector reverse_vector(vector v)
        {
            vector u = new vector(-v.a, -v.b);

            return(u);
        }
示例#2
0
 public directional_vector(vector vector, double direction)
 {
     this.vector    = vector;
     this.direction = direction;
 }
示例#3
0
        public vector flip_vector(vector u)
        {
            vector v = new vector(u.a, -u.b);

            return(v);
        }