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)); }
public Vector3L(Vector2L vector, long z) { this.X = vector.X; this.Y = vector.Y; this.Z = z; }
public static Point2L Subtract(Point2L p, Vector2L v) { return(new Point2L(p.X - v.X, p.Y - v.Y)); }
public static Point2L Add(Point2L p, Vector2L v) { return(new Point2L(p.X + v.X, p.Y + v.Y)); }
public Point2L(Vector2L from) { this.X = from.X; this.Y = from.Y; }