Esempio n. 1
0
 public override object ConvertFrom(
     ITypeDescriptorContext context,
     CultureInfo culture,
     object value)
 {
     if (value.GetType() == typeof(string))
     {
         return((object)Vector2L.Parse((string)value));
     }
     return(base.ConvertFrom(context, culture, value));
 }
Esempio n. 2
0
 public Vector3L(Vector2L vector, long z)
 {
     this.X = vector.X;
     this.Y = vector.Y;
     this.Z = z;
 }
Esempio n. 3
0
 public static Point2L Subtract(Point2L p, Vector2L v)
 {
     return(new Point2L(p.X - v.X, p.Y - v.Y));
 }
Esempio n. 4
0
 public static Point2L Add(Point2L p, Vector2L v)
 {
     return(new Point2L(p.X + v.X, p.Y + v.Y));
 }
Esempio n. 5
0
 public Point2L(Vector2L from)
 {
     this.X = from.X;
     this.Y = from.Y;
 }