Exemple #1
0
 public static Vector2 operator *(Vector2 vector, double factor)
 {
     var v = new Vector2(vector);
       v.Mul(factor);
       return v;
 }
Exemple #2
0
 public static Vector2 operator -(Vector2 vector)
 {
     var v = new Vector2(vector);
       v.Neg();
       return v;
 }
Exemple #3
0
 Vector2(Vector2 vector)
     : this(vector.X, vector.Y)
 {
 }
Exemple #4
0
 public Vector2 Sub(Vector2 vector)
 {
     gimp_vector2_sub(ref _vector, ref _vector, ref vector._vector);
       return this;
 }
Exemple #5
0
 public double InnerProduct(Vector2 vector)
 {
     return gimp_vector2_inner_product(ref _vector, ref vector._vector);
 }
Exemple #6
0
 public double CrossProduct(Vector2 vector)
 {
     return gimp_vector2_cross_product(ref _vector, ref vector._vector);
 }
Exemple #7
0
 public Vector2 Add(Vector2 vector)
 {
     gimp_vector2_add(ref _vector, ref _vector, ref vector._vector);
       return this;
 }