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

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

            return(v);
        }