Пример #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));
 }
Пример #2
0
 public Vector3L(Vector2L vector, long z)
 {
     this.X = vector.X;
     this.Y = vector.Y;
     this.Z = z;
 }
Пример #3
0
 public static Point2L Subtract(Point2L p, Vector2L v)
 {
     return(new Point2L(p.X - v.X, p.Y - v.Y));
 }
Пример #4
0
 public static Point2L Add(Point2L p, Vector2L v)
 {
     return(new Point2L(p.X + v.X, p.Y + v.Y));
 }
Пример #5
0
 public Point2L(Vector2L from)
 {
     this.X = from.X;
     this.Y = from.Y;
 }